docker Component

Guardian Operation Mode

By default, the installation method of easzup is used to deploy docker. For details, see Install docker service

Common Parameter Description

Default configuration file: /etc/docker/daemon.json

{
  "registry-mirrors": [
    "https://dockerhub.azk8s.cn",
    "https://docker.mirrors.ustc.edu.cn",
    "http://hub-mirror.c.163.com"
  ],
  "max-concurrent-downloads": 10,
  "log-driver": "json-file",
  "log-level": "warn",
  "log-opts": {
    "max-size": "10m",
    "max-file": "3"
    },
  "data-root": "/var/lib/docker"
}

For specific parameters, please refer to docker official documentation

Configure docker to trust private mirror repository

If your private mirror repository is not configured with https or self-signed https certificate, you need to configure docker trust.

    1. If https is not configured or a self-signed certificate (not trusted by the browser), you need to configure the docker insecure-registries value, and you need to restart docker when you need it
"insecure-registries": ["gridworkz","hub.test.com"],
    1. Self-signed certificate, and docker does not need to restart

You need to copy the certificate of the self-signed domain name to the following path /etc/docker/certs.d/<private mirror repository domain name>/

Example Gridworkz
root@compute-node-99:/etc/docker/certs.d/gridworkz# ls
server.crt