fixes issue where hostnames would change on package reinstall/update

This commit is contained in:
Keagan McClelland
2022-01-13 12:18:43 -07:00
committed by Aiden McClelland
parent 702253a18c
commit 486976eea0

View File

@@ -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(()),