Error response from daemon: Get https://10.131.178.174/v2/: x509: certificate has expired or is not

今天药忘吃喽~ 2022-04-22 01:10 172阅读 0赞

解决:
需要到docker.service中修改下参数就可以了!

/usr/lib/systemd/system/docker.service

  1. [root@bkapp1 ~]# cat /usr/lib/systemd/system/docker.service
  2. [Unit]
  3. Description=Docker Application Container Engine
  4. Documentation=https://docs.docker.com
  5. After=network-online.target firewalld.service
  6. Wants=network-online.target
  7. [Service]
  8. Type=notify
  9. # the default is not to use systemd for cgroups because the delegate issues stil l
  10. # exists and systemd currently does not support the cgroup feature set required
  11. # for containers run by docker
  12. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  13. ExecStart=/usr/bin/dockerd --insecure-registry 10.131.178.174
  14. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  15. ExecReload=/bin/kill -s HUP $MAINPID
  16. # Having non-zero Limit*s causes performance problems due to accounting overhead
  17. # in the kernel. We recommend using cgroups to do container-local accounting.
  18. LimitNOFILE=infinity
  19. LimitNPROC=infinity
  20. LimitCORE=infinity
  21. # Uncomment TasksMax if your systemd version supports it.
  22. # Only systemd 226 and above support this version.
  23. #TasksMax=infinity
  24. TimeoutStartSec=0
  25. # set delegate yes so that systemd does not reset the cgroups of docker containe rs
  26. Delegate=yes
  27. # kill only the docker process, not all processes in the cgroup
  28. KillMode=process
  29. # restart the docker process if it exits prematurely
  30. Restart=on-failure
  31. StartLimitBurst=3
  32. StartLimitInterval=60s
  33. [Install]
  34. WantedBy=multi-user.target

重点这句:

  1. ExecStart=/usr/bin/dockerd --insecure-registry 10.131.178.174

发表评论

表情:
评论列表 (有 0 条评论,172人围观)

还没有评论,来说两句吧...

相关阅读