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 login
Push the image to the Docker Hub.
docker push username/image_name:image_tag
Create Docker Image that supports multiple CPU architectures.
docker buildx ls
docker buildx create --name crossbuild
docker buildx use crossbuild
docker buildx inspect --bootstrap
The 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 .