ubuntu-with-utils
ubuntu-with-utils copied to clipboard
a docker image of ubuntu with some daily utilities such as sudo, bash-completion vim less man lsof ping iptables wget curl 7z git
trafficstars
ubuntu-with-utils
A docker image with basic development and diagnostic tools:
bash-completionvimlessmanjqlsoftreepstreepingnetstatssarpnslookupdighostiptablesncncatsocatnmapcurlwget7zsudogit- further develop tool such as
python,node... are NOT included
By default this docker container runs as a sudo-able user devuser
so can work with some anti-root tools.
Usage
-
start a interactive
bashshelldocker run -it osexp2000/ubuntu-with-utilsscreenshot:
devuser@446f84fa0d63:~$ id; pwd uid=1000(devuser) gid=1000(devuser) groups=1000(devuser),27(sudo) /home/devuser devuser@446f84fa0d63:~$ sudo apt update && sudo apt -y install python3 -
run command directly
$ docker run -it osexp2000/ubuntu-with-utils COMMAND ARGS...
Notes
-
the input device is not a TTYWhen this error happens, please remove the
toption (allocate tty).- NG
$ echo "echo OK" | docker -it osexp2000/ubuntu-with-utils the input device is not a TTY - OK
$ echo "echo OK" | docker -i osexp2000/ubuntu-with-utils OK
- NG
-
sudo: unable to resolve host HOSTNAMEThis warning happens when the container is started with
--net host. Please add option--add-host HOSTNAME:127.0.0.1- NG
$ docker run -it --net host osexp2000/ubuntu-with-utils sudo echo OK sudo: unable to resolve host HOSTNAME OK - OK
if the hostname is non-deterministic, you can fix hostname(for the container) with$ docker run -it --net host --add-host HOSTNAME:127.0.0.1 osexp2000/ubuntu-with-utils sudo echo OK OK--hostname HOSTNAME.$ docker run -it --net host --add-host HOSTNAME:127.0.0.1 --hostname HOSTNAME osexp2000/ubuntu-with-utils sudo echo OK OK
- NG