I have few docker images residing in private repositories of Docker Hub. How can I force Rancher OS docker to auto-login to my Docker Hub account while booting via iPXE / cloud config? What is the best practice to do this?
I haven’t tried it myself, but have you looked at this documentation? It’s how to add in certificates for private registries, but not sure how it would work for dockerhub…
that would work if Docker Hub supported certificates. But I have to login using the docker login command and my username/password to access my private repositories. This information is then stored in ~/.docker/config.json, co creating this file is equivalent to using the command. But this does not seem to work when launching services from cloud-config.