跳至主要內容

docker标准输出占用问题解决

xw小于 1 分钟DockerDocker

cat >> /etc/docker/daemon.json << EOF
{
  "default-ulimits": {
    "nofile": {
      "Hard": 128000,
      "Name": "nofile",
      "Soft": 128000
    }
  },
  "insecure-registries": [],
  "live-restore": true,
  "log-opts": {
    "cache-disabled": "false",
    "cache-max-file": "5",
    "cache-max-size": "20m",
    "cache-compress": "true",
    "max-file": "5",
    "max-size": "50m"
  },
  "max-concurrent-downloads": 10,
  "max-concurrent-uploads": 5,
  "max-download-attempts": 5,
  "registry-mirrors": ["https://h8ot7h7n.mirror.aliyuncs.com"],
  "selinux-enabled": false
}
EOF

重启docker: systemctl restart docker