You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I modified the /etc/hosts file to redirect to my private registry for some test work.
Docker login succeed:
$ sudo docker login -u test-user -p xxxxxxxx example.registry.com
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Docker pull failed as expected because no project named base on my test-version private registry:
$ sudo docker pull example.registry.com/base/tomcat:latest
Error response from daemon: unauthorized: project base not found: project base not found
It successfully pulled the image example.registry.com/base/tomcat:latest, which only exists on the released registry(not my test version), but it failed to push image, reporting error like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I modified the /etc/hosts file to redirect to my private registry for some test work.
Docker login succeed:
Docker pull failed as expected because no project named base on my test-version private registry:
However, When I built image using:
It successfully pulled the image example.registry.com/base/tomcat:latest, which only exists on the released registry(not my test version), but it failed to push image, reporting error like this:
So I guess that docker login worked, but /etc/hosts did not work.
Additional Information
docker version:
Somebody could help me?
Beta Was this translation helpful? Give feedback.
All reactions