https://github.com/gni/DinD
Docker in Docker "DinD" AlmaLinux/rockylinux
https://github.com/gni/DinD
almalinux container developer-tools dind docke-compose docker rockylinux
Last synced: 10 months ago
JSON representation
Docker in Docker "DinD" AlmaLinux/rockylinux
- Host: GitHub
- URL: https://github.com/gni/DinD
- Owner: gni
- License: mit
- Created: 2023-08-31T18:53:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T16:08:44.000Z (over 1 year ago)
- Last Synced: 2024-12-29T06:42:41.430Z (over 1 year ago)
- Topics: almalinux, container, developer-tools, dind, docke-compose, docker, rockylinux
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# DinD AlmaLinux/rockylinux Setup
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.
## Table of Contents
1. [Requirements](#requirements)
2. [Installation](#installation)
3. [Dockerfiles Overview](#dockerfiles-overview)
4. [Usage](#usage)
5. [Docker Compose](#docker-compose)
6. [Contributing](#contributing)
7. [Authors](#authors)
8. [License](#license)
## Requirements
- Docker
- Docker Compose (Optional)
## Installation
Clone this repository to your local machine:
```bash
git clone https://github.com/exaluc/DinD.git
```
## Dockerfiles Overview
### Dockerfile
This is the standard setup using AlmaLinux 8. It installs Docker CE, Docker CLI, and Containerd.
### Dockerfile-minimal
This setup uses the minimal AlmaLinux image to provide a lightweight DinD environment. It only installs essential packages to run Docker & docker-compose.
### Dockerfile-py
This setup is optimized for Python development. It includes development tools and Python 3.9.1.
## Usage
To build a Docker image from any of the Dockerfiles, navigate to the project directory and run:
```bash
docker build -f -t .
```
For example, to build an image from `Dockerfile`:
```bash
docker build -f Dockerfile -t my-dind-setup .
```
To run the container:
```bash
docker run --privileged -d --name my-dind-container my-dind-setup
```
## Docker Compose
```bash
docker-compose up -d
```
## Legacy Docker Compose CLI near docker compose
For users who are familiar with older docker-compose, also supported.
## Contributing
If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are welcome.
## Authors
- [Lucian BLETAN](https://github.com/gni) - Initial work
## License
MIT
---