2023-01-11 19:19:44 +00:00
|
|
|
% toolbox-enter 1
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
## NAME
|
2019-04-30 10:19:36 +00:00
|
|
|
toolbox\-enter - Enter a toolbox container for interactive use
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
## SYNOPSIS
|
2021-01-25 16:53:48 +00:00
|
|
|
**toolbox enter** [*--distro DISTRO* | *-d DISTRO*]
|
2019-03-08 07:17:11 +00:00
|
|
|
[*--release RELEASE* | *-r RELEASE*]
|
2021-01-25 16:53:48 +00:00
|
|
|
[*CONTAINER*]
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
|
2021-01-25 17:43:01 +00:00
|
|
|
Spawns an interactive shell inside a toolbox container that was created using
|
|
|
|
the `toolbox create` command. It tries to spawn the user's default shell, but
|
|
|
|
if it's not available inside the container then it falls back to `/bin/bash`.
|
2021-01-25 16:53:48 +00:00
|
|
|
|
|
|
|
When invoked without any options, `toolbox enter` will try to enter the default
|
|
|
|
toolbox container for the host, or if there's only one container available then
|
2021-06-26 10:21:43 +00:00
|
|
|
it will use it. On Fedora, the default container is known as
|
|
|
|
`fedora-toolbox-N`, where N is the release of the host. If there aren't any
|
|
|
|
containers, `toolbox enter` will offer to create the default one for you.
|
2021-01-25 16:53:48 +00:00
|
|
|
|
|
|
|
A specific container can be selected using the CONTAINER argument.
|
2019-02-28 17:07:24 +00:00
|
|
|
|
2019-03-05 13:11:12 +00:00
|
|
|
A toolbox container is an OCI container. Therefore, `toolbox enter` is
|
|
|
|
analogous to a `podman start` followed by a `podman exec`.
|
|
|
|
|
2019-02-28 17:07:24 +00:00
|
|
|
## OPTIONS ##
|
|
|
|
|
|
|
|
The following options are understood:
|
|
|
|
|
2021-01-07 20:35:20 +00:00
|
|
|
**--distro** DISTRO, **-d** DISTRO
|
|
|
|
|
|
|
|
Enter a toolbox container for a different operating system DISTRO than the
|
2021-12-17 14:24:20 +00:00
|
|
|
host. Has to be coupled with `--release` unless the selected DISTRO matches the
|
2021-01-07 20:35:20 +00:00
|
|
|
host.
|
|
|
|
|
2019-03-08 07:17:11 +00:00
|
|
|
**--release** RELEASE, **-r** RELEASE
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
Enter a toolbox container for a different operating system RELEASE than the
|
|
|
|
host.
|
|
|
|
|
|
|
|
## EXAMPLES
|
|
|
|
|
2023-03-25 12:49:45 +00:00
|
|
|
### Enter the default toolbox container matching the host OS
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ toolbox enter
|
|
|
|
```
|
|
|
|
|
2023-03-25 12:49:45 +00:00
|
|
|
### Enter the default toolbox container for Fedora 36
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
```
|
2021-12-10 02:02:54 +00:00
|
|
|
$ toolbox enter --distro fedora --release f36
|
2019-02-28 17:07:24 +00:00
|
|
|
```
|
|
|
|
|
2023-03-30 19:26:08 +00:00
|
|
|
### Enter a toolbox container with a custom name
|
2019-02-28 17:07:24 +00:00
|
|
|
|
|
|
|
```
|
2021-01-25 16:53:48 +00:00
|
|
|
$ toolbox enter foo
|
2019-02-28 17:07:24 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## SEE ALSO
|
|
|
|
|
2021-03-04 19:36:22 +00:00
|
|
|
`toolbox(1)`, `toolbox-run(1)`, `podman(1)`, `podman-exec(1)`,
|
|
|
|
`podman-start(1)`
|