Skip to content

Instantly share code, notes, and snippets.

@fzrhrs
Last active August 29, 2015 14:10
Show Gist options
  • Save fzrhrs/04143ec6d5e8ab7290ae to your computer and use it in GitHub Desktop.
Save fzrhrs/04143ec6d5e8ab7290ae to your computer and use it in GitHub Desktop.
https://docs.docker.com/reference/commandline/cli/#ps
docker images
docker load -i
docker run -it
docker ps -a (-a for all)
docker attach [names]
docker exec
Remove old containers:
docker rm `docker ps --no-trunc -aq`
Remove docker image:
docker rmi image_name
docker build .
docker run -i -p 8080:8080 image_id
docker start container_id
docker attach container_id
http://www.alexecollins.com/first-steps-with-docker/
..developing..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment