Cyber Deals - Get up to 65% off on CKA, CKAD, CKS, KCNA, KCSA exams and courses!

Push images to Docker registry

## find the image to push
$ docker images

## tag image
$ docker tag ce160677a129 username/nodejs-webapp-demo

## push image
$ docker push username/nodejs-webapp-demo

Configure Docker credential store

$ cat $HOME/.docker/config.json

Troubleshooting

$ Docker login 
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: username
Password: 
Error saving credentials: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

Solution:

Delete "credsStore": "desktop" from $HOME/.docker/config.json and save the file.

Disclaimer: Views expressed in articles are those of the respective authors and do not necessarily reflect the views of their employers or this site. While we aim for accuracy, please verify information before relying on it, and let us know if you spot an error.
Share: