Docker 登录远程仓库Harbor https 问题

Docker 登录远程仓库https 问题:

Error response fromdaemon: Get https://192.168.30.247/v2/: dial tcp 192.168.30.247:443:getsockopt: connection refused

1.cd 进入 /etc/init

2.修改vi docker.conf


3.cd 进入/lib/systemd/system

4.修改 vi docker.service


(红色正方形为修改添加的地方,ip为你的远程仓库地址)

5.重新启动dockerservice :

 service docker stop ->systemctldaemon-reload->service docker start



你可能感兴趣的:(docker,harbor)