Container

Persistence

The image's top layer can be written, but not kept!

  • Stopping the container means the total loss of data.

Persistence is achieved through external resources.

  • Bind mount: path to the host.

  • Volume: managed has a Docker resource.

  • External: iSCSI, Database, NFS, etc.

Container Network

Containers execute a configuration in a specific network.

  • without an ingress network added by omission.

Typical network mechanisms:

  • Bridge: virtual switch.

  • Host: network only between the host and the container.

  • None: completely isolated-

Services inside containers cannot provide services to other applications.

  • It is necessary to explicitly expose the services.

Additionally

Docker Compose.

  • Orchestration of Docker containers.

Kubernetes.

  • Orchestrator.

Last updated