From personal use

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
    • if you need a shell instead exec -it containername /bin/bash
      • note that vi/vim might not be present, consider sed instead to edit configuration files
  • docker -p 80:80 for HTTPd port mapping

To explore


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.