systemctl start docker-registryBut wait! This registry isn't pointing to your docker images which your docker client daemon uses (those images are in this directory):
/var/lib/docker/graphInstead, the docker-registry stores images here.
/var/lib/docker-registry/imagesSo, make sure you push an image to your registry before trying to use it.
docker push localhost:5000/busyboxI recently got an "Invalid registry" error when accessing a docker-registry from a remote machine.
There are a few workarounds to this. The easiest, is simply to allow your docker clients to pull from an insecure-registry. To do this, you edit /etc/sysconfig/docker like this.
OPTIONS=--selinux-enabled --insecure-registry myhost.mycompany.com:5000Now, restart docker.
systemctl start dockerNow, restart docker. You should now be able to pull down images remotely.
docker pull myhost.mycompany.com:5000/busybox

No comments:
Post a Comment