Docker Container Registry
A Docker image should be published in docker container registry (public/private), so that it can be accessed during CI/CD
Docker Hub
- Create account on docker hub
- Create repository (private or public). Once you create registry, it’ll look something like
/ , e.g. `chandanjh/orendaa-rails-api` - From your machine, login to docker
```shell
Login to docker from command line
$> docker login
Create a tag from docker images
To list your images,
docker images
$> docker tag
chandanjh/ : To build this image from specific Dockerfile
$> docker build -f Dockerfile.production -t chandanjh/orendaa-rails-api:production .
Now push this to docker hub
$ docker push chandanjh/orendaa-rails-api:production ```
This is a sapling 🌱 in my digital garden 🏡.