dwyl / learn-docker

🚢 Learn how to use docker.io containers to consistently deploy your apps on any infrastructure.
230 stars 32 forks source link

How to push to Dokerhub #11

Open carloscasalar opened 8 years ago

carloscasalar commented 8 years ago

I've readed the official documentation for push images to docker hub: https://docs.docker.com/userguide/dockerrepos/#pushing-a-repository-to-docker-hub

I've done it to push my first image but I wish it would push my Dockerfile and link the associated github repository but I can't figure out the way to do that.

This is my image: https://hub.docker.com/r/carloscastillo/rgt-oracle-xe-11g/ I wish it were more like this one: https://hub.docker.com/r/alexeiled/docker-oracle-xe-11g/

It would be useful this guide contains more detail about pushing images and its associated dockerfiles and repositories.

carloscasalar commented 8 years ago

Maybe I've found the solution here: http://stackoverflow.com/a/27679804/840635

nelsonic commented 8 years ago

Looks promising. Keep us informed with your progress. :+1:

carloscasalar commented 8 years ago

That's it.

In order to push your Dockerfile instead of your image itself you have to create an automated after link your Github or Bitbucket account. While definin the automated build you select your repo and the location of your Dockerfile. Then, when you push a change at your repo, Dockerhub automatically builds your image.