鱼C论坛

 找回密码
 立即注册
查看: 1780|回复: 0

学习Docker遇到问题,不知道有人懂吗?

[复制链接]
发表于 2018-7-22 11:38:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
修改
/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[1]: Failed to start Docker Application Container Engine.
7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Service hold-off time over, scheduling restart.
7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
7月 22 11:24:21 jon-VirtualBox systemd[1]: Stopped Docker Application Container Engine.
7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Start request repeated too quickly.
7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Failed with result 'exit-code'.
7月 22 11:24:21 jon-VirtualBox systemd[1]: Failed to start Docker Application Container Engine.
7月 22 11:24:22 jon-VirtualBox systemd[1]: docker.service: Start request repeated too quickly.
7月 22 11:24:22 jon-VirtualBox systemd[1]: docker.service: Failed with result 'exit-code'.
7月 22 11:24:22 jon-VirtualBox systemd[1]: Failed to start Docker Application Container Engine.

不知道有没有人可以解答
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-12-22 22:01

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表