Docker Commands

This is just a minor thing on my mind, but ever since my introduction to Docker, I’ve noticed the lack of categorization of the near 40 commands which seems odd to me. Previous tools I’ve used such as Virsh and Metasploit have everything meticulously organized in an categorical then alphabetical order. I think having the commands also categorized would help new users, e.g.

run       Run a command in a new container
attach    Attach to a running container
start     Start a stopped container
stop      Stop a running container
restart   Restart a running container
kill      Kill a running container
exec      Run a command in an existing container
rm        Remove one or more containers
rmi       Remove one or more images
 
ps        List containers
images    List images
build     Build an image from a Dockerfile
commit    Create a new image from a container's changes
create    Create a new container
cp        Copy files/folders from a container's filesystem to the host path
save      Save an image to a tar archive
pause     Pause all processes within a container
unpause   Unpause a paused container
hosts     Create and manage hosts running Docker

diff      Inspect changes on a container's filesystem
events    Get real time events from the server
export    Stream the contents of a container as a tar archive
history   Show the history of an image
import    Create a new filesystem image from the contents of a tarball
info      Display system-wide information
inspect   Return low-level information on a container
load      Load an image from a tar archive
login     Register or log in to a Docker registry server
logout    Log out from a Docker registry server
logs      Fetch the logs of a container
port      Lookup the public-facing port that is NAT-ed to PRIVATE_PORT
pull      Pull an image or a repository from a Docker registry server
push      Push an image or a repository to a Docker registry server
search    Search for an image on the Docker Hub
tag       Tag an image into a repository
top       Lookup the running processes of a container
version   Show the Docker version information
wait      Block until a container stops, then print its exit code

Or is it just me?

2 Likes

Yes, there are 2 issues in github for this - I don’t seem to be able to find them atm, but mostly, I’d think it needs someone to make a pull request that implements it :smile:

1 Like