gpt4 book ai didi

docker - 使用daemon.json文件缺少Docker 1.12证书

转载 作者:行者123 更新时间:2023-12-02 20:19:27 27 4
gpt4 key购买 nike

我在Ubuntu 16.04上运行docker 1.12,我需要更改bip选项,因此我创建了一个自定义/etc/docker/daemon.json配置文件,如下所示:

root@simo:/etc/docker# cat daemon.json 
{
"authorization-plugins": [],
"dns": ["8.8.8.8", "8.8.4.4"],
"dns-opts": [],
"dns-search": [],
"exec-opts": [],
"exec-root": "",
"storage-driver": "",
"storage-opts": [],
"labels": [],
"live-restore": true,
"log-driver": "",
"log-opts": {},
"mtu": 0,
"pidfile": "",
"graph": "",
"cluster-store": "",
"cluster-store-opts": {},
"cluster-advertise": "",
"max-concurrent-downloads": 3,
"max-concurrent-uploads": 5,
"debug": true,
"hosts": [],
"log-level": "",
"tls": false,
"tlsverify": false,
"tlscacert": "",
"tlscert": "",
"tlskey": "",
"swarm-default-advertise-addr": "",
"api-cors-header": "",
"selinux-enabled": false,
"userns-remap": "",
"group": "",
"cgroup-parent": "",
"default-ulimits": {},
"ipv6": false,
"iptables": false,
"ip-forward": false,
"ip-masq": false,
"userland-proxy": false,
"ip": "0.0.0.0",
"bridge": "",
"bip": "172.17.42.1/16",
"fixed-cidr": "",
"fixed-cidr-v6": "",
"default-gateway": "",
"default-gateway-v6": "",
"icc": false,
"raw-logs": false,
"registry-mirrors": [],
"insecure-registries": [],
"disable-legacy-registry": false,
"default-runtime": "runc",
"oom-score-adjust": -500
}

现在,如果我启动守护程序,它将根本无法工作:
FATA[0000] Could not load X509 key pair (cert: "", key: ""): open : no such file or directory

这绝对是正确的,但根本不让我使用docker。

如果删除daemon.json文件,但是dockerd正确启动,那么我猜想,要么可以在不提供证书的情况下启动dockerd,要么可以在某些地方使用证书来运行dockerd。

如何使用daemon.json配置文件简单地运行dockerd?

最佳答案

如果只需要更改bip的值,那么下面的daemon.json文件就足够了。

{
"bip": "172.17.42.1/16"
}

关于docker - 使用daemon.json文件缺少Docker 1.12证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39856954/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com