Skip to content

maciekrb/docker-tutorial

Repository files navigation

Docker Crash Course

In order to follow this crash course you need to make sure you complete the Docker Engine install for your operating system.

Survival Docker commands

Obtaining a list of currently running containers

$ docker ps

Obtaining a list of all containers running / stopped

$ docker ps -a

Stopping a container

$ docker stop <container name>

Removing a container (has to be stopped)

$ docker rm <container name>

Removing all containers with exited status

$ docker rm -v $(docker ps -a -q -f status=exited)

Inspecting a container

$ docker inspect <container name>

Listing docker images locally available

$ docker images

Pulling an image from the docker hub

$ docker pull redis

Removing docker images

$ docker rmi <image name>

Removing dangling images

$ docker images -f "dangling=true" -q | xargs docker rmi

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published