Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to push changes to docker hub?

Tags:

docker

1) I have pushed image to docker hub with

docker push ucanmiracle/docker-learn:node-test-image

2) Added changes to my project file

3) pushing docker image with

docker push ucanmiracle/docker-learn:node-test-image1

But project changes didn't applied. How to properly push updates to docker hub?

like image 680
Nikolay Podolnyy Avatar asked Oct 15 '25 20:10

Nikolay Podolnyy


1 Answers

You don't push project files to the registry, you push an image, which needs to be built from the project files first.

1: Run docker build -t ucanmiracle/docker-learn:node-test-image1 . It will build the image from the Dockerfile in current directory and tag it as ucanmiracle/docker-learn:node-test-image1.

2: Then you run docker push ucanmiracle/docker-learn:node-test-image1 to push the image to Docker Hub.

Check this Link for more on building Docker images.

like image 132
Maciek Lewkowicz Avatar answered Oct 18 '25 14:10

Maciek Lewkowicz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!