

Fortunately these commands also work with a few unique characters like below:ĩ9b9505c7c18e51b1154e7d95f0e034eac4c9264ff2196501208f fd35644c37c $ docker inspect 99b9įor when you want to be explicit about naming then tab-completion helps you out and will attempt to finish off the name or ID you started typing in. $ docker run -d -P nginxĩ9b9505c7c18e51b1154e7d95f0e034eac4c9264ff2196501208ffd35644c37cĬommands like docker inspect or docker kill take an ID or name as an input, so if you're new to Docker you would probably copy/paste the whole container ID. Here I run an nginx container and then forget to give it a name. Having done this myself I saw docker top - something brand new for me.ĭisplay the running processes of a container Now you can profit from doing things like this:Īttach events info network rename service unpauseīuild exec inspect node restart start updateĬommit export kill pause rm stats version Ln -s /Applications/Docker.app/Contents/Resources/etc/docker-compose.bash-completion Ln -s /Applications/Docker.app/Contents/Resources/etc/docker-machine.bash-completion Ln -s /Applications/Docker.app/Contents/Resources/etc/docker.bash-completion bashrc file already then you may want to use chmod +x and to add an extra line at the top of the file #!/bin/bash cat > ~/.bashrc <
