This repository contains Dockerfiles for setting up Docker-in-Docker (DinD) environments using AlmaLinux as the base image. Different configurations are available for various use-cases.
- Docker
- Docker Compose (Optional)
Clone this repository to your local machine:
git clone https://github.com/exaluc/DinD.git
This is the standard setup using AlmaLinux 8. It installs Docker CE, Docker CLI, and Containerd.
This setup uses the minimal AlmaLinux image to provide a lightweight DinD environment. It only installs essential packages to run Docker & docker-compose.
This setup is optimized for Python development. It includes development tools and Python 3.9.1.
To build a Docker image from any of the Dockerfiles, navigate to the project directory and run:
docker build -f <DockerfileName> -t <your-image-name> .
For example, to build an image from Dockerfile
:
docker build -f Dockerfile -t my-dind-setup .
To run the container:
docker run --privileged -d --name my-dind-container my-dind-setup
docker-compose up -d
For users who are familiar with older docker-compose, also supported.
If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are welcome.
- Lucian BLETAN - Initial work
MIT