选项 说明
--add-runtime runtime 注册OCI兼容的运行时
--allow-nondistributable-artifacts list 推送非分布式的artifacts到指定registry
--api-cors-header string 为Engine API设置CORS头
--authorization-plugin list 授权加载的插件,默认是[]
--bip string 指定网桥IP
-b,--bridge string 向网桥添加容器
--cgroup-parent string 为容器设置父cgroup
--cluster-advertise string 广播地址或接口名
--cluster-store string 分布式存储后端的URL
--cluster-store-opt map 设置cluster存储选项,默认是map[]
--config-file string Daemon配置文件,默认是/etc/docker/daemon.json
--containerd string containerd socket路径
--cpu-rt-period int 限制CPU周期时间
--cpu-rt-runtime int 限制CPU运行时时间
--data-root string Docker持久化的根目录,默认是/var/lib/docker
-D,--debug debug模式
--default-gateway ip 容器默认的网关IPv4地址
--default-gateway-v6 ip 容器默认的网关IPv6地址
--default-runtime string 容器的默认OCI运行时,默认是runc
--default-ulimit ulimit 容器默认的ulimits,默认是[]
--dns list DNS server,默认是[]
--dns-opt list DNS选项,默认是[]
--dns-search list DNS search domains,默认是[]
--exec-opt list 运行时执行选项,默认是[]
--exec-root string 执行文件的根目录,默认是/var/run/docker
--experimental 试验特性
--fixed-cidr-v6 string 固定IP的IPv6子网络
-G,--group string unix socket的Group,默认是docker
--help 打印用法
-H,--host list 连接的Daemon socket,默认是[]
--icc 设置容器间通信,默认是true
--init 在容器中初始化,用来传送singal和reap processes
--init-path string docker-init binary的路径
--insecurity-registry list 设置不安全的registry,默认是[]
--ip ip 绑定容器端口的IP,默认是0.0.0.0
--ip-forward 设置net.ipv4.ip_forward,默认是true
--ip-masq 设置IP masquerading,默认是true
--iptables 设置iptables规则,默认是true
--ipv6 设置IPv6网络
--label list 设置daemon的标签键值对,默认是[]
--live-restore 当容器运行时,设置docker的live restore
--log-driver string 容器日志的驱动,默认是json-file
-l,--log-level string 设置日志级别(debug,info,warn,error,fatal),默认是info
--log-opt map 容器的日志驱动选项,默认是map[]
--max-concurrent-downloads int 设置每次pull最大并发下载数,默认是3
--max-concurrent-uploads int 设置每次push的最大并发数,默认是5
--metrics-addr string 设置服务metrics api的默认地址与端口
--mtu int 设置容器的网络MTU
--node-generic-resources list 广播用户自定义的资源
--no-new-privileges 对新建容器设置no-new-privileges
--oom-score-adjust int 设置daemon的oom_score_adj,默认是-500
-p,--pidfile string daemon PID file路径,默认是/var/run/docker.pid
--raw-logs 无ANSI渲染的全时间戳
--registry-mirror list 优先使用的Docker registry mirror,默认是[]
--seccomp-profile string seccomp profile路径
--selinux-enabled 支持selinux
--shutdown-timeout int 设置默认的shutdown超时,默认15s
-s,--storage-driver string 使用的storage driver
--storage-opt list storage driver选项,默认是[]
--swarm-default-advertise-addr string 为swarm广播地址设置默认地址或接口
--tls 使用TLS
--tlscacert string 默认是~/.docker/ca.pem
--tlscert string 默认是~/.docker/cert.pem
--tlskey string 默认是~/.docker/key.pem
--tlsverify 使用TLS,并且验证remote
--userland-proxy 对loopback traffic使用userland proxy,默认是true
--userland-proxy-path string userland proxy binary的路径
--userns-remap string user命名空间的User/Group
-v,--version 打印版本信息

在Docker 1.13+,使用试验特性,可以在启动dockerd时使用标识--experimental;或者是在daemon.json中添加"experimental":true

【参考】

1。docker官网:https://docs.docker.com/engine/reference/commandline/dockerd/

results matching ""

    No results matching ""