mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
fixes issue where hostnames would change on package reinstall/update
This commit is contained in:
committed by
Aiden McClelland
parent
702253a18c
commit
486976eea0
@@ -66,6 +66,7 @@ impl DockerAction {
|
||||
.arg(format!("--add-host=embassy:{}", Ipv4Addr::from(HOST_IP)))
|
||||
.arg("--name")
|
||||
.arg(&container_name)
|
||||
.arg(format!("--hostname={}", &container_name))
|
||||
.arg("--no-healthcheck");
|
||||
match ctx.docker.remove_container(&container_name, None).await {
|
||||
Ok(()) | Err(bollard::errors::Error::DockerResponseNotFoundError { .. }) => Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user