修改daemon.json配置私有仓库后,重启docker失败

阳光下跳舞的猫 2018-06-21 09:41:15
问题描述:
修改daemon.json添加insecure-registries配置项配置好私有仓库后,重启docker失败
错误日志:
docker-current[2768]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives don't match any configuration option: insecure-registries
docker版本:
[root@build-xxx ~]# docker version
Client:
Version: 1.10.3
API version: 1.22
Package version: docker-common-1.10.3-59.el7.centos.x86_64
Go version: go1.6.3
Git commit: 3999ccb-unsupported
Built: Thu Dec 15 17:24:43 2016
OS/Arch: linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?


...全文
3428 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
需要升级docker,参考https://www.bookstack.cn/read/HyperApp-guide/zh-centos-upgrade-docker.md
DHclly 2019-09-05
  • 打赏
  • 举报
回复
参考链接:https://www.cnblogs.com/cocowool/p/docker_daemon_log_driver.html docker起不来报错:Failed to start Docker Application Container Engine. - 简书 https://www.jianshu.com/p/e637b217e9c8
RomanDick 2018-07-04
  • 打赏
  • 举报
回复
docker版本太旧了,很多配置和语法都不一样。换一个源下载docker 18吧。

1,162

社区成员

发帖
与我相关
我的任务
社区描述
Docker是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux 机器上,也可以实现虚拟化。
社区管理员
  • Docker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧