# Docker-in-Docker

Docker-in-Docker is a self-hosted development app. Unraid template for the official Docker-in-Docker (DinD) image, which lets your Unraid server build Docker images as a network build node without running a virtual machine. It is open source and self-hosted, installable on Unraid and Docker Hub.

Canonical page: https://ourlocalhost.com/app/4018/docker-in-docker

## Description

Unraid template for the official Docker-in-Docker (DinD) image, which lets your Unraid server build Docker images as a network build node without running a virtual machine. Expose the container's TCP port and point docker buildx at it to build images from any other machine or from Unraid itself. Not a set-and-forget container: network mode matters, so read the first-install notes.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 5 days ago)
- Popular: 64 (1,515 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 67 (no serious findings, CI, OpenSSF Scorecard 3.9/10)

## Links

- GitHub: https://github.com/docker-library/docker
- Unraid: https://ca.unraid.net/apps/docker-in-docker-dind-0fnilxp047y6vl?q=Docker-in-Docker-DinD
- Docker Hub: https://hub.docker.com/_/docker/

## Common questions

### Does using DinD make Docker build cache reuse harder?

Docker builds already provide a nearly clean environment, and DinD can make utilizing the cache harder.

### How can containers inside DinD reach an external web service?

DinD container networking can be configured so inner containers can reach a service such as an Apache HTTP server from inside the DinD container.

### Which methods are discussed for implementing DinD?

The guide lists privileged mode and Docker socket mounting as methods for implementing DinD.

### Where should I check for official docker image changes that are not yet on Docker Hub?

Check the docker-library/docs repository and the library/docker file in the official-images repository for the current source of truth.

---
Source: Our Local Host (https://ourlocalhost.com/app/4018/docker-in-docker), the self-hosted and open-source app directory.
