Skip to content

Commit

Permalink
Use container name as container hostname
Browse files Browse the repository at this point in the history
..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 <[email protected]>
  • Loading branch information
Jmennius committed Feb 29, 2020
1 parent 1e22327 commit f318765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolbox
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit f318765

Please sign in to comment.