I have just started testing docker swarm and have created a private repository on Docker hub, uploaded an image to it and am now trying to start a docker swarm service from that image. Each time I try, i get the message
unable to pin image… to digest: errors
denied: requested access to the resource is denied
unauthorized: authentication required
- Each of the nodes is logged in to my account
- I can pull the image manually onto each of the nodes using
docker pull myid/test:18.104.22.168
- I can list the images on each node and get
but when I run the command
docker service create --replicas 1 --name test3 myid/test:22.214.171.124 --with-registry-auth
it fails with the above message. It appears not to be able to use the local copy, or download it from docker hub.
I’m sure what I’m doing wrong is incredibly obvious, but I can see it at the moment. Any help would be greatly appreciated.