Monday, April 27, 2020

docker cheat sheet

Check current version
docker --version

Pull from image and run
docker run hello-world

Download from image
docker image ls
   
List running containers
docker container ls
docker ps 
 
List all containers
docker container ls -all
docker ps -a
Stop a container
docker container stop [container name]

Remove container
docker container rm [container name]

No comments: