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

前端 未结 15 608
攒了一身酷
攒了一身酷 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 18:54

    Edit the config file "/etc/default/docker"

    sudo vi /etc/default/docker

    add the line at the end of file

    DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=192.168.2.170:5000"

    (replace the 192.168.2.170 with your own ip address)

    and restart docker service

    sudo service docker restart

提交回复
热议问题