Skip to content

Commit f318765

Browse files
committed
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: containers#98, containers#120 Signed-off-by: Ievgen Popovych <[email protected]>
1 parent 1e22327 commit f318765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolbox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ create()
10791079
--dns none \
10801080
--env TOOLBOX_PATH="$TOOLBOX_PATH" \
10811081
--group-add "$group_for_sudo" \
1082-
--hostname toolbox \
1082+
--hostname "$(echo $toolbox_container | sed 's/_/-/g')" \
10831083
--ipc host \
10841084
--label "com.github.containers.toolbox=true" \
10851085
--label "com.github.debarshiray.toolbox=true" \

0 commit comments

Comments
 (0)