Docker cheat sheet

Follow this site for more details: https://docs.docker.com/

Basics

Show a list of available images:

$ docker images

Show a list of containers:

$ docker container ls

Open Docker bash:

$ docker exec -it <docker container> bash

Show docker container logs:

use the option: --follow to continuously stream the log

$ docker logs <docker container> 

Last updated