A tiny Docker image with a set of Bash scripts for:
- Installing Docker and enabling the experimental mode.
- Building and tagging multi-platform Docker images.
- Pushing README file to Docker Hub.
Create a container and copy the scripts file from it.
id=$(docker create moikot/docker-tools)
docker cp $id:/scripts.sh /tmp/scripts.sh && docker rm -v $id
/tmp/scripts.sh update_docker
The command updates Docker to the latest version and enables the experimental mode in Docker daemon.
- Image name: moikot/foobar
- Git tag: v1.0.0
- Platforms: linux/amd64, linux/arm64/v8
/tmp/scripts.sh build_images
moikot/foobar v1.0.0 \
linux/amd64,linux/arm64/v8 \
[additional build arguments]
NOTE: Additional build arguments are passed directly to docker buildx build
command.
/tmp/scripts.sh push_readme \
moikot/foobar README.md \
[docker_hub_user] [docker_hub_password]