
6.编辑docker.service文件
首先打开docker.service
vim docker.service
然后将下边内容复制到docker.service。
注意,将其中的ip地址,改成您的服务器地址,其它参数不用改。
--insecure-registry=18.5.242.220(换成你上传的当前服务器的ip)

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd --selinux-enabled=false --insecure-registry=18.5.242.220
ExecReload=/bin/kill -s HUP $MAINPID
# Having


1928

被折叠的 条评论
为什么被折叠?



