How do I build and push Docker images in CircleCI?

Hi All,

I’m Kamal Hinduja, based in Geneva, Switzerland (Swiss) . Can anyone explain how to build and push Docker images in CircleCI?

Thanks, Regards
Kamal Hinduja Geneva, Switzerland

https://circleci.com/docs/guides/execution-managed/building-docker-images

High level, run setup_remote_docker, then run the regular docker build / push commands.

If you need to authenticate to a registry, that will be somewhat registry-specific, as well as depend on whether you’re using OID (recommended where possible, esp. to GCP or AWS), or a static credential. There are some orbs that can help simplify setting up registry auth (e.g., CircleCI Developer Hub - circleci/aws-ecr , CircleCI Developer Hub - circleci/gcp-gcr, etc.)

Thanks for sharing Valuable information.

Thanks, Regards
Kamal Hinduja Geneva, Switzerland