Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in DevOps and Agile by (29.3k points)

I am trying to push my container on the docker hub but it’s showing error. Could you help me out?

1 Answer

0 votes
by (50.2k points)
Before pushing, login into the docker hub account then try to push and the name of the container should be in the following format:
<dockerhub username>/<image-name>
Commands:
sudo docker login
sudo docker commit <container-id> -t  <dockerhub username>/<image-name>
sudo docker push <dockerhub username>/<image-name>

This will help you to push your container to the docker hub.

For learning more about it, click on Docker Tutorial. 

Related questions

0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...