This repo is used for Docker tutorial purpose, and it contains only sample Dockerfile which only prints "Hello World" when run.
- Docker installed on your machine
- Basic understanding of Docker
- Basic understanding of Docker registry
- Having accoung on Github
docker build -t docker-tutorial-sample .
docker run docker-tutorial-sampledocker login
docker tag docker-tutorial-sample <your-dockerhub-username>/docker-tutorial-sample
docker push <your-dockerhub-username>/docker-tutorial-sampledocker pull <your-dockerhub-username>/docker-tutorial-sampledocker login ghcr.io
docker tag docker-tutorial-sample ghcr.io/<your-github-username>/docker-tutorial-sample
docker push ghcr.io/<your-github-username>/docker-tutorial-sampledocker pull ghcr.io/<your-github-username>/docker-tutorial-sample