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
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