commit | 504cf8930810d62cf1cd5a11488250b012375741 | [log] [tgz] |
---|---|---|
author | Sean P. Kane <skane@newrelic.com> | Wed Jun 04 19:08:50 2014 |
committer | Sean P. Kane <skane@newrelic.com> | Wed Jun 04 19:08:50 2014 |
tree | 21044c981582f69659cbc113875daa1fcdd035bd | |
parent | 4f0cdb22c69efa0e02fe8061cc31bf7cac211a0d [diff] |
Specify a specific docker image tag everywhere
toolbox is a small script that launches a container to let you bring in your favorite debugging or admin tools.
$ /usr/bin/toolbox [root@srv-3qy0p ~]# yum install tcpdump [root@srv-3qy0p ~]# 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
Set a /etc/passwd
entry for one of the users to /usr/bin/toolbox
.
useradd bob -m -p '*' -s /usr/bin/toolbox -g sudo
ssh bob@hostname.example.com ______ ____ _____ / ____/___ ________ / __ \/ ___/ / / / __ \/ ___/ _ \/ / / /\__ \ / /___/ /_/ / / / __/ /_/ /___/ / \____/\____/_/ \___/\____//____/ [root@srv-3qy0p ~]# yum install emacs [root@srv-3qy0p ~]# emacs /media/root/etc/systemd/system/docker.service