Docker in Action

Docker

Docker is a tool that enables your to create,deploy,and run applications using containers.

Docker-compose

  • Restart Policies Docker Compose
  • no: It means never attempt to restart the container if it stops or crashes. Remember to give single quotes ’no’ because in yaml file, if we give no without quotes, it is treated as false.
  • always: If our container stops for any reason, always attempt to restart the stopped container.
  • on-failure: Only restart the container, if it stops with an error code.
  • unless-stopped: Always restart unless the developers forcibly stop the process.

FAQ

Reference materials