Docker daemon configuration overview(Docker 守护进程配置概览)
翻个译
https://docs.docker.com/config/daemon/
This page shows you how to customize the Docker daemon,
dockerd.
这一页面向你展示如何定制 Docker 的守护进程 dockerd
Note
This page is for users who’ve installed Docker Engine manually. If you’re using Docker Desktop, refer to the following pages instead:
注意
这个页面是给那些人手安装 Docker Engine 的用户的, 如果你正在用 Docker Desktop, 参考以下页面作为代替:
更改 Mac 的首选项
更改 Windows 的首选项
更改 Linux 的首选项
Configure the Docker daemon
There are two ways to configure the Docker daemon:
Use a JSON configuration file. This is the preferred option, since it keeps all configurations in a single place.
Use flags when starting
dockerd.You can use both of these options together as long as you don’t specify the same option both as a flag and in the JSON file. If that happens, the Docker daemon won’t start and prints an error message.
To configure the Docker daemon using a JSON file, create a file at
/etc/docker/daemon.jsonon Linux systems, orC:\ProgramData\docker\config\daemon.jsonon Windows.Here’s what the configuration file might look like:
配置 Docker 守护进程
有两种配置 Dockers 守护进程的方式:
用一个 JSON 配置文件。这是首选方式,因为它保存所有配置在同一地方。
使用旗标来启动 dockerd








评论