学习Docker遇到问题,不知道有人懂吗?
修改 /etc/docker/daemon.json 文件,修改前,如下{
"labels": ["name=service_1"],
"registry-mirrors": ["https://registry.docker-cn.com"]
}
可以正常启动,安装官方文档修改成
{
"labels": ["name=service_1"],
"registry-mirrors": ["https://registry.docker-cn.com"],
"debug": true,
"tls": true,
"tlscert": "/var/docker/server.pem",
"tlskey": "/var/docker/serverkey.pem",
"hosts": ["tcp://192.168.31.230:2376"]
}
无法启动,不知道是啥情况
报错描述:
jon@jon-VirtualBox:~$ sudo service docker restart
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
- systemctl status docker.service:
jon@jon-VirtualBox:~$ systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-07-22 11:24:21 CST; 13min ago
Docs: https://docs.docker.com
Process: 12846 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 12846 (code=exited, status=1/FAILURE)
7月 22 11:24:20 jon-VirtualBox systemd: Failed to start Docker Application Container Engine.
7月 22 11:24:21 jon-VirtualBox systemd: docker.service: Service hold-off time over, scheduling restart.
7月 22 11:24:21 jon-VirtualBox systemd: docker.service: Scheduled restart job, restart counter is at 3.
7月 22 11:24:21 jon-VirtualBox systemd: Stopped Docker Application Container Engine.
7月 22 11:24:21 jon-VirtualBox systemd: docker.service: Start request repeated too quickly.
7月 22 11:24:21 jon-VirtualBox systemd: docker.service: Failed with result 'exit-code'.
7月 22 11:24:21 jon-VirtualBox systemd: Failed to start Docker Application Container Engine.
7月 22 11:24:22 jon-VirtualBox systemd: docker.service: Start request repeated too quickly.
7月 22 11:24:22 jon-VirtualBox systemd: docker.service: Failed with result 'exit-code'.
7月 22 11:24:22 jon-VirtualBox systemd: Failed to start Docker Application Container Engine.
不知道有没有人可以解答
页:
[1]