From f1da4c2ce442cee9a514a8805e9bc5667799b589 Mon Sep 17 00:00:00 2001 From: Ievgen Popovych Date: Sat, 29 Feb 2020 16:35:16 +0200 Subject: [PATCH] Use container name as container hostname ..to distinguish different toolboxes more easily inside a toolbox, this includes version information too (by default). Replace underscores with dashes since underscores are not allowed in hostnames. Fixes: #98, #120 Signed-off-by: Ievgen Popovych --- toolbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox b/toolbox index 507d283bf..128ea62a0 100755 --- a/toolbox +++ b/toolbox @@ -1079,7 +1079,7 @@ create() --dns none \ --env TOOLBOX_PATH="$TOOLBOX_PATH" \ --group-add "$group_for_sudo" \ - --hostname toolbox \ + --hostname $(echo $toolbox_container | sed 's/_/-/g') \ --ipc host \ --label "com.github.containers.toolbox=true" \ --label "com.github.debarshiray.toolbox=true" \