鱼C论坛

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

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

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

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

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

x
修改
  1. /etc/docker/daemon.json
复制代码
文件,修改前,如下
  1. {
  2.     "labels": ["name=service_1"],
  3.     "registry-mirrors": ["https://registry.docker-cn.com"]
  4. }
复制代码

可以正常启动,安装官方文档修改成
  1. {
  2.     "labels": ["name=service_1"],
  3.     "registry-mirrors": ["https://registry.docker-cn.com"],
  4.     "debug": true,
  5.     "tls": true,
  6.     "tlscert": "/var/docker/server.pem",
  7.     "tlskey": "/var/docker/serverkey.pem",
  8.     "hosts": ["tcp://192.168.31.230:2376"]
  9. }
复制代码

无法启动,不知道是啥情况
报错描述:
  1. jon@jon-VirtualBox:~$ sudo service docker restart
  2. Job for docker.service failed because the control process exited with error code.
  3. See "systemctl status docker.service" and "journalctl -xe" for details.
复制代码



- systemctl status docker.service:
  1. jon@jon-VirtualBox:~$ systemctl status docker.service
  2. ● docker.service - Docker Application Container Engine
  3.    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
  4.    Active: failed (Result: exit-code) since Sun 2018-07-22 11:24:21 CST; 13min ago
  5.      Docs: https://docs.docker.com
  6.   Process: 12846 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
  7. Main PID: 12846 (code=exited, status=1/FAILURE)

  8. 7月 22 11:24:20 jon-VirtualBox systemd[1]: Failed to start Docker Application Container Engine.
  9. 7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Service hold-off time over, scheduling restart.
  10. 7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
  11. 7月 22 11:24:21 jon-VirtualBox systemd[1]: Stopped Docker Application Container Engine.
  12. 7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Start request repeated too quickly.
  13. 7月 22 11:24:21 jon-VirtualBox systemd[1]: docker.service: Failed with result 'exit-code'.
  14. 7月 22 11:24:21 jon-VirtualBox systemd[1]: Failed to start Docker Application Container Engine.
  15. 7月 22 11:24:22 jon-VirtualBox systemd[1]: docker.service: Start request repeated too quickly.
  16. 7月 22 11:24:22 jon-VirtualBox systemd[1]: docker.service: Failed with result 'exit-code'.
  17. 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-3-29 18:52

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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