concept container - creation time in category docker

appears as: container-creation time
Docker in Action, Second Edition

This is an excerpt from Manning's book Docker in Action, Second Edition.

Docker uses environment variables to communicate information about dependent containers, the hostname of the container, and other convenient information for programs running in containers. Docker also provides a mechanism for a user to inject environment variables into a new container. Programs that know to expect important information through environment variables can be configured at container-creation time. Luckily for you and your client, WordPress is one such program.

  • A user can pass input or provide additional configuration to a process in a container by specifying environment variables at container-creation time.
  • Using the --read-only flag at container-creation time will mount the container filesystem as read-only and prevent specialization of the container.
  • A container restart policy, set with the --restart flag at container-creation time, will help your systems automatically recover in the event of a failure.
  • Docker in Action

    This is an excerpt from Manning's book Docker in Action.

    Docker uses environment variables to communicate information about dependent containers, the host name of the container, and other convenient information for programs running in containers. Docker also provides a mechanism for a user to inject environment variables into a new container. Programs that know to expect important information through environment variables can be configured at container-creation time. Luckily for you and your client, WordPress is one such program.