Skip to content

Latest commit

 

History

History
69 lines (40 loc) · 1.49 KB

containers.md

File metadata and controls

69 lines (40 loc) · 1.49 KB

Containers

Docker

Address Pools

See: https://straz.to/2021-09-08-docker-address-pools/

Daemon configuration

Reference: https://docs.docker.com/config/daemon/

Configuration file:

  • on Linux: /etc/docker/daemon.json

Daemon data directory

Daemon data directory is stored by defaul:

  • on Linux: in /var/lib/docker
  • on Windows: in C:\ProgramData\docker

Different paths can be specified using the data-root configuration parameter. E.g.:

{
  "data-root": "/mnt/docker-data"
}

Reference: https://docs.docker.com/config/daemon/#daemon-data-directory

Run a container in interactive mode

docker run -i -t [docker_image]

Override entrypoint with docker run

docker run --entrypoint [new_command] [docker_image]

Swap usage

To enable the swap memory usage during the container execution, see https://docs.docker.com/config/containers/resource_constraints/#--memory-swappiness-details

Kubernetes

Official site: https://kubernetes.io/.

Alternative distributions:

Open Container Initiative

The Open Container Initiative is an open governance structure for the express purpose of creating open industry standards around container formats and runtimes.

Web site: https://opencontainers.org/