Docker support repository contains all the Dockerfile, Docker-Compose files with the source code of application components.
There must be a docker file to build an image.
docker image build -t username/image_name:image_tag .A Docker Hub account is required.
docker loginPush the image to the Docker Hub.
docker push username/image_name:image_tag
Create Docker Image that supports multiple CPU architectures.
docker buildx lsdocker buildx create --name crossbuilddocker buildx use crossbuilddocker buildx inspect --bootstrapThe image will be available for the CPU architecture:
- linux/arm64
- linux/amd64
- linux/arm/v7
- linux/arm/v6
docker buildx build --platform linux/arm64,linux/amd64,linux/arm/v7,linux/arm/v6 -t username/image_name:image_tag --push .