Skip to content

Instantly share code, notes, and snippets.

@galanteh
Created October 2, 2018 11:49
Show Gist options
  • Save galanteh/f1e4392c860a8488837ade83267827cb to your computer and use it in GitHub Desktop.
Save galanteh/f1e4392c860a8488837ade83267827cb to your computer and use it in GitHub Desktop.
Docker commands
docker pull ubuntu # downloads image from Docker repository
docker ps -a # shows all available containers
docker ps -as # shows all containers with the actual size of the rw-layer
docker exec -ti ceb1be03097d /bin/bash # run bash on running container
docker commit ceb1be03097d /: # create image based on container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment