I have an error with my private registry (in dockerhub) and this command (docker 1.13):
docker stack deploy --compose-file=docker-compose.yml my_stack
Error message :
unable to pin image fidelisa/node to digest: errors:
denied: requested access to the resource is denied
unauthorized: authentication required
I am login (docker login) and docker pull fidelisa/node is working.
Any ideas ?
Hello, its happen to me to.
Feb 1 06:44:46 Ubuntu-1604-xenial-64-minimal dockerd: time=“2017-02-01T06:44:46.338873382+01:00” level=warning msg=“unable to pin image ************* to digest: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n”
try to pass --with-registry-auth option
docker stack deploy -c docker-compose.yml --with-registry-auth
(in case it still complains, delete the local cache images with docker rmi
@kbhattac It works thanks
You probably need to do docker login on each machine followed by
docker login -u username -p password registry.hub.Docker.com/myproject && Docker stack deploy -c Docker-swarm.yml test --with-registry-auth
as explained over here