May 2018
Intermediate to advanced
554 pages
13h 51m
English
Now you can push your container image to your private registry. Because we have set up an HTTP basic authentication, you need to do docker login first. Otherwise you get a no basic auth credentials error:
//just tag nginx to your own private image$ docker tag nginx 10.138.0.3:30500/my-nginx//will be failed when push without login information. using complete image name with private registry as prefix$ docker push 10.138.0.3:30500/my-nginxThe push refers to a repository [10.138.0.3:30500/my-nginx]a103d141fc98: Preparing 73e2bd445514: Preparing 2ec5c0a4cb57: Preparing no basic auth credentials
Therefore, you need docker login to specify the username and password, which you set onto the registry_passwd ...
Read now
Unlock full access