refactor: use hostname instead of variable

This commit is contained in:
Job
2025-09-01 10:26:07 +02:00
parent e0f953b94e
commit 4004417aa5
3 changed files with 3 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ arg() { echo -n " $@"; }
# starting a new container.
run_args() {
arg "--name $name"
arg "--hostname $name"
# Disable some security settings so host directories can
# be mounted without problems.
@@ -23,7 +24,6 @@ run_args() {
# container.
[ -e "/run/user/$UID/bus" ] && arg "-v /run/user/$UID/bus:/tmp/bus" # Use host dbus.
arg "-e HOST_HOME=$HOME" # Used to translate container path to host.
arg "-e CONTAINER_NAME=$name"
# Use host networking.
arg "--net=host"