Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make toolboxes use the container name as hostname. #771

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This will create a container called `fedora-toolbox-<version-id>`.
### Enter the toolbox:
```console
[user@hostname ~]$ toolbox enter
[user@toolbox ~]$
[user@fedora-toolbox-33 ~]$
```

### Remove a toolbox container:
Expand Down
2 changes: 1 addition & 1 deletion images/fedora/f32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This will create a container called `fedora-toolbox-<version-id>`.
### Enter the toolbox:
```console
[user@hostname ~]$ toolbox enter
[user@toolbox ~]$
[user@fedora-toolbox-33 ~]$
```

### Remove a toolbox container:
Expand Down
2 changes: 1 addition & 1 deletion images/fedora/f33/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This will create a container called `fedora-toolbox-<version-id>`.
### Enter the toolbox:
```console
[user@hostname ~]$ toolbox enter
[user@toolbox ~]$
[user@fedora-toolbox-33 ~]$
```

### Remove a toolbox container:
Expand Down
2 changes: 1 addition & 1 deletion images/fedora/f34/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This will create a container called `fedora-toolbox-<version-id>`.
### Enter the toolbox:
```console
[user@hostname ~]$ toolbox enter
[user@toolbox ~]$
[user@fedora-toolbox-33 ~]$
```

### Remove a toolbox container:
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func createContainer(container, image, release string, showCommandToEnter bool)
createArgs = append(createArgs, xdgRuntimeDirEnv...)

createArgs = append(createArgs, []string{
"--hostname", "toolbox",
"--hostname", container,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect that the rules for a valid hostname are different from the rules for a valid OCI container name.

"--ipc", "host",
"--label", "com.github.containers.toolbox=true",
"--label", "com.github.debarshiray.toolbox=true",
Expand Down