From personal use

  • to list all containers, including ones not currently running docker container ls -a
    • useful to restart a container running just temporarily e.g. Nextcloud local instance for pulling large video out of an iPhone
  • change the ports values in docker-compose.yml if docker-compose up fails because of a used port, typically 8080
  • docker stop instance_name: stop the instance
  • docker start instance_name: start the instance
  • docker rm instance_name: delete the instance
  • docker logs instance_name: get console output if the instance
  • docker inspect instance_name: get details of running instance including IP address
  • docker ps: list running instances
  • docker help : the MOST important command ;)

From SundayGeekBrunch2016InventingOnPrinciple3

  • made first own Docker file
  • difference between container and images
    • an image, result of a build from a Dockerfile, is not running
  • exiting container if process in daemon mode
    • depending on the target usage but if passed the -d parameter must make sure to run the target process in foreground
  • docker attach to access the terminal inside a running container
  • docker -p 80:80 for HTTPd port mapping

To explore

  • links to websites with content to discover


My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.