tag | 9c776d70bdb1d0b082e5b50012004eb938f0b3eb | |
---|---|---|
tagger | Aashish Radhakrishnan <aaradhak@redhat.com> | Fri Aug 05 00:28:12 2022 |
object | 44c782fcee900971e1d88c8eabcece664879400a |
This is release 0.1.0 of toolbox. Thanks to the following contributors for patches during this release: Aashish Radhakrishnan <aaradhak@redhat.com> (2): 3d91d1b Bug 2093040: Unable to start `toolbox` on RHCOS using `podman` 4.0 68a86ef Bug 1915537: Rework to use podman attach instead of exec Benjamin Gilbert <bgilbert@redhat.com> (1): bc19342 Delete Container Linux toolbox Timothée Ravier <tim@siosm.fr> (2): 189c778 Clean-up stdout and keep all misc messages on stderr 0e7f648 Add some comments
commit | 44c782fcee900971e1d88c8eabcece664879400a | [log] [tgz] |
---|---|---|
author | Timothée Ravier <travier@redhat.com> | Thu Aug 04 10:00:54 2022 |
committer | GitHub <noreply@github.com> | Thu Aug 04 10:00:54 2022 |
tree | 1e48e1b11aa22ce35f56dfce7832d78b51a1dfca | |
parent | 15bc604f7edda58bf6db769e1f9f81e74db43230 [diff] | |
parent | 0e7f6480a058d6765269fdcf35d31fb6b9799fdd [diff] |
Merge pull request #81 from travier/stderrfix
rhcos-toolbox is a small script, designed for RHEL CoreOS, that launches a podman container to let you bring in your favorite debugging or admin tools.
$ /usr/bin/toolbox Spawning container core-fedora-latest on /var/lib/toolbox/core-fedora-latest. Press ^] three times within 1s to kill container. [root@localhost ~]# dnf -y install tcpdump ... [root@localhost ~]# tcpdump -i ens3 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ens3, link-type EN10MB (Ethernet), capture size 65535 bytes
toolbox uses a Fedora-based userspace environment by default, but this can be changed to any Docker image. Simply override environment variables in $HOME/.toolboxrc
:
core@core-01 ~ $ cat ~/.toolboxrc REGISTRY=registry.redhat.io IMAGE=rhel7/rhel-tools:latest core@core-01 ~ $ toolbox Spawning a container 'toolbox-test' with image 'registry.redhat.io/rhel7/rhel-tools:latest'
Set an /etc/passwd
entry for one of the users to /usr/bin/toolbox
:
useradd bob -m -p '*' -s /usr/bin/toolbox -U -G sudo,docker,rkt
Now when SSHing into the system as that user, toolbox will automatically be started:
$ ssh bob@hostname.example.com Container Linux by CoreOS alpha (1284.0.0) ... Spawning container bob-fedora-latest on /var/lib/toolbox/bob-fedora-latest. Press ^] three times within 1s to kill container. [root@localhost ~]# dnf -y install emacs-nox ... [root@localhost ~]# emacs /media/root/etc/systemd/system/docker.service