Container management

  • create Create a new container
  • start Start one or more stopped containers
  • run Run a command in a new container
  • attach Attach to a running container
  • rename Rename a container
  • restart Restart a running container
  • stop Stop a running container
  • kill Kill a running container
  • rm Remove one or more containers
  • port List port mappings or a specific mapping for the CONTAINER

Image management

  • build Build an image from a Dockerfile
  • commit Create a new image from a container's changes
  • history Show the history of an image
  • load Load an image from a tar archive or STDIN
  • save Save an image(s) to a tar archive
  • tag Tag an image into a repository
  • rmi Remove one or more images

Status

  • top Display the running processes of a container
  • events Get real time events from the server
  • ps List containers
  • images List images
  • inspect Return low-level information on a container or image
  • logs Fetch the logs of a container
  • stats Display a live stream of container(s) resource usage statistics

Filesystem

  • diff Inspect changes on a container's filesystem
  • cp Copy files/folders from a container to a HOSTDIR or to STDOUT

SSH

  • exec Run a command in a running container
  • export Export a container's filesystem as a tar archive
  • import Import the contents from a tarball to create a filesystem image

Pause

  • pause Pause all processes within a container
  • unpause Unpause all processes within a container
  • wait Block until a container stops, then print its exit code

Repository/Docker Hub

  • search Search the Docker Hub for images
  • login Register or log in to a Docker registry
  • logout Log out from a Docker registry
  • pull Pull an image or a repository from a registry
  • push Push an image or a repository to a registry

Meta

  • info Display system-wide information
  • version Show the Docker version information