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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With