How to get remote access to a private docker-registry?

前端 未结 15 614
攒了一身酷
攒了一身酷 2020-11-30 18:45

I\'m trying to setup a private docker registry using the image taken from: https://github.com/docker/docker-registry

Just by running:
docker run -p 5000:50

15条回答
  •  长情又很酷
    2020-11-30 19:19

    Ubuntu 16.04

    Create (does not exist) file /etc/systemd/system/docker.service.d/registry.conf with contents:

    [Service]
    #You need the below or you 'ExecStart=' or you will get and error 'Service has more than one ExecStart= setting, which is only allowed'
    ExecStart=
    ExecStart=/usr/bin/dockerd -H fd:// --insecure-registry 10.20.30.40:5000
    

    then

    sudo systemctl stop docker
    sudo systemctl daemon-reload
    sudo systemctl start docker
    

提交回复
热议问题