Cannot use private images from Docker Hub (with Swarm)

I have added Docker hub as a registry, in my compose file I refer to the image i want as:


This always gives “image not found” when deploying my project.

I have tried:

  • Prefixing my image with docker/,, dockerhub/, - does not work
  • Making my image public - works
  • Running docker login from swarm cli - works

Any idea on how to troubleshoot or fix this?

Have you looked at the docs on registries?

Yes I have. It works with Cattle, but not with Swarm.