Skip to content

Commit

Permalink
toolbox: 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.
Replace underscores with dashes since underscores are not allowed in hostnames.

Fixes: containers#98, containers#120
Signed-off-by: Ievgen Popovych <[email protected]>
  • Loading branch information
Jmennius committed Feb 29, 2020
1 parent 1e22327 commit e5eac2f
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 e5eac2f

Please sign in to comment.