Working with Docker is really fun. As soon as you want to debug something, you try the old
ps, and these commands don’t exist. You try
apt-get install ps only to realise you’re not on the right distro for
apt-get, and even when you get that command right, you can’t find
ps. Then you remember to
apt-get update then install, only to find again
ps doesn’t exist. Gah!
For my own sanity, and the sanity of others, here are some hints to getting all the things working on these lets-not-ship-basic-debugging-tools-because-micro-operating-systems widgets:
apt-get update &&
apt-get install net-toolsyields
apt-get install procpsyields
apt-get install iptablesyields
Flavour the commands for your preferred distro, these are default debian/ubuntu
--no-install-recommends to prevent added stuff being added. They should.. should only be recommendations, not requirements, so you should still get the same functionality
 What did you expect me to say?