mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
fix docker start
This commit is contained in:
committed by
Aiden McClelland
parent
f3c6edc5c6
commit
6b6dc404ab
@@ -74,13 +74,18 @@ async fn init(cfg_path: Option<&str>) -> Result<(), Error> {
|
||||
Command::new("systemctl")
|
||||
.arg("stop")
|
||||
.arg("docker")
|
||||
.invoke(embassy::ErrorKind::Journald)
|
||||
.invoke(embassy::ErrorKind::Docker)
|
||||
.await?;
|
||||
embassy::disk::util::bind(&tmp_docker, "/var/lib/docker", false).await?;
|
||||
Command::new("systemctl")
|
||||
.arg("reset-failed")
|
||||
.arg("docker")
|
||||
.invoke(embassy::ErrorKind::Docker)
|
||||
.await?;
|
||||
Command::new("systemctl")
|
||||
.arg("start")
|
||||
.arg("docker")
|
||||
.invoke(embassy::ErrorKind::Journald)
|
||||
.invoke(embassy::ErrorKind::Docker)
|
||||
.await?;
|
||||
log::info!("Mounted Docker Data");
|
||||
embassy::ssh::sync_keys_from_db(&secret_store, "/root/.ssh/authorized_keys").await?;
|
||||
|
||||
1
appmgr/src/setup.rs
Normal file
1
appmgr/src/setup.rs
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user