Docker commands cheat sheet [Draft 15/12/2018]

I’m started to work with docker and here I’ll be writing a list of  useful commands which I usually use like a cheat sheet.

Image result for docker logo

  • List the containers
    • docker ps
    • docker ps a
  • Display a live stream of container(s) resource usage statistics
    • docker stats <ContainerId>
  • Show the logs of a specific container id
    • docker logs <ContainerId>
    • docker logs  -f <ContainerId>
  • Enter in docker container via @FelipeCruz
    • docker exec -it <ContainerName> /bin/bash

Continue reading “Docker commands cheat sheet [Draft 15/12/2018]”