How do I push a docker image to a private repository?

0 votes

I am having docker images tagged as hello/this-image, and I am having a private repository on the dockerhub named me-private. When I am pushing my image, I am hitting the public repository.

What is the exact syntax to specifically push my image to my private repository?

Can anyone help me with this?

Thanks

Sep 18, 2018 in DevOps & Agile by shubham
• 6,890 points
54 views

1 answer to this question.

0 votes

Here is what you can do.

Just try to tag your image correctly first with the registryhost which you are having:

docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]

Then use docker push using that same tag.

docker push NAME[:TAG]

I hope that it will resolve your query.

answered Sep 18, 2018 by Damon Salvatore
• 5,510 points

Related Questions In DevOps & Agile

+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,110 points
74 views
+13 votes
5 answers

How do I run a cron job inside a docker container

If you can SSH into your server ...READ MORE

answered Jul 27, 2018 in DevOps & Agile by Kalgi
• 40,440 points
2,450 views
0 votes
1 answer

How to get remote access to a private docker-registry?

New client version refuses to work with ...READ MORE

answered Jul 31, 2018 in DevOps & Agile by Kalgi
• 40,440 points
82 views
0 votes
1 answer

How do I get a Docker container's IP address from the host?

Save your docker image as a tar ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by shubham
• 6,890 points
41 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,520 points
155 views
0 votes
1 answer
0 votes
1 answer