https://github.com/johanvanhelden/dockerhero
latest
Ensure you are logged in locally to hub.docker.com using docker login
and have access to the hub repository.
(note: your username is used, not your email address).
$ docker build ./ --tag johanvanhelden/dockerhero-nginx:TAG
$ docker push johanvanhelden/dockerhero-nginx:TAG
Replace TAG
with the tag you are working on.
If you want to test a new feature, create a new tag for it. This way, it can not introduce issues in the production image if something is not working properly.
Once it works, delete the custom tag and introduce it into latest
$ docker-compose up --build
$ docker exec -it dockerhero-nginx-testing bash