Skip to content

Commit

Permalink
Make toolboxes use the container name as hostname.
Browse files Browse the repository at this point in the history
This allows the user to easily see which container they are currently in instead of the generic @toolbox.
  • Loading branch information
runfalk committed May 20, 2021
1 parent e935ed8 commit 1261d88
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ systems it's just a matter of installing the `toolbox` package.
[user@hostname ~]$ toolbox create
Created container: fedora-toolbox-33
Enter with: toolbox enter
[user@hostname ~]$
[user@fedora-toolbox-33 ~]$
```
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
4 changes: 2 additions & 2 deletions images/fedora/f32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ systems it's just a matter of installing the `toolbox` package.
[user@hostname ~]$ toolbox create
Created container: fedora-toolbox-33
Enter with: toolbox enter
[user@hostname ~]$
[user@fedora-toolbox-33 ~]$
```
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
4 changes: 2 additions & 2 deletions images/fedora/f33/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ systems it's just a matter of installing the `toolbox` package.
[user@hostname ~]$ toolbox create
Created container: fedora-toolbox-33
Enter with: toolbox enter
[user@hostname ~]$
[user@fedora-toolbox-33 ~]$
```
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
4 changes: 2 additions & 2 deletions images/fedora/f34/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ systems it's just a matter of installing the `toolbox` package.
[user@hostname ~]$ toolbox create
Created container: fedora-toolbox-33
Enter with: toolbox enter
[user@hostname ~]$
[user@fedora-toolbox-33 ~]$
```
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,
"--ipc", "host",
"--label", "com.github.containers.toolbox=true",
"--label", "com.github.debarshiray.toolbox=true",
Expand Down

0 comments on commit 1261d88

Please sign in to comment.