Docker Note

Run vi Editor

For Ubuntu/Debian

docker exec -it ubuntu bash -c "apt-get update && apt-get install -y vim"

For CentOS/Fedora

docker exec -it centos bash -c "yum update -y && yum install -y vim"

ifconfig/netstat

For Ubuntu/Debian

apt-get install -y net-tools

For CentOS/Fedora

yum install -y net-tools

ps

For Ubuntu/Debian

apt-get install -y procps

For CentOS/Fedora

yum install -y procps

ping

For Ubuntu/Debian

apt-get install -y inetutils-ping

For CentOS/Fedora

yum install -y iputils

curl

For Ubuntu/Debian

apt-get install -y curl

For CentOS/Fedora

yum install -y curl

dig

For Ubuntu/Debian

apt-get install -y dnsutils

For CentOS/Fedora

yum install -y bind-utils

wget

For Ubuntu/Debian

apt-get install -y wget

For CentOS/Fedora

yum install -y wget