Docker-in-Docker-DinD

Docker-in-Docker-DinD

Offiziell

Docker-Anwendung from testdasi's Repository

Übersicht

Unraid template for the official Docker-in-Docker (aka DinD) image. Build docker images directly using your Unraid server as a node i.e. without needing to run a VM - just expose TCP port like you would for a network build node. This is NOT a start-it-and-forget-it set up so PLEASE READ THE NOTES. NOTES: (1) I'm not affiliated with Docker. I just realised nobody created an Unraid template for this really useful image that I have been using for a while (e.g. all my Unraid docker images are built on this via buildx node) so I share this for the community. If Docker ever has an official template then I'll deprecate this one. (2) Must be run in Bridge network mode. Don't bother doing macvlan (aka "br0" / "br1" Unraid docker network), the child dockers will always fail due to lack DNS resolving errors. Don't bother with host network, it crashes my whole docker network every time, requiring a reboot to reset. (3) It is possible to run this rootless / without privileged with the appropriate image tag and config but I could never get it to work properly. Hence, this template requires to run docker with root in privileged mode - with all the usual warning about it. (4) I do NOT recommend mapping /var/lib/docker (i.e. the equivalent to Unraid docker image) unless you actually need it. I don't map it and just delete dangling volume using user scripts. (5) This template has TLS enabled by default and the certs will be saved at wherever you map /certs to on the host. If the /certs is empty, a script will automatically create certificates for you. Port 2376 is used to access docker service through TCP with TLS. As always, buildx will require the full set of certificates to authenticate but note VERY IMPORTANTLY: you have to set it up using DNS name (e.g. by adding the docker name and the Unraid server IP to /etc/hosts and set buildx to use docker_name:2376) and not directly by IP. (5a) Alternatively, once the certificates have been generated (i.e. docker was run at least once), you need to map the FILE /certs/server/openssl.conf to a host file as READ-ONLY (to prevent the docker TLS generator script from overwriting it) + make your appropriate edits + delete the rest of the /certs folder content and let the certificate generator script run again for new certs. You can even do wildcard and stuff like that but I'm not going into details here. (5b) If the above is too complicated for you, just run it without TLS (set DOCKER_TLS_CERTDIR variable to blank). But be mindful that docker has been screaming that this will be deprecated in a (yet-undetermined) future version. And you will need to map 2375 port. (6) You don't need to map both 2375 and 2376. 2375 for non-TLS. 2376 for TLS.

Laufzeit-Argumente

Netzwerk
bridge
Shell
sh
Privilegiert
true

Konfiguration der Vorlage

TLS TCP PortPorttcp

Container Port: 2376

Ziel
2376
Standard
2376
Wert
2376
Non-TLS TCP PortPorttcp

Container Port: 2375

Ziel
2375
Standard
2375
Wert
2375
CertificatePathrw

Container Path: /certs

Ziel
/certs
Standard
/mnt/cache/appdata/dind/certs
Wert
/mnt/cache/appdata/dind/certs
Docker storagePathrw

Container Path: /var/lib/docker

Ziel
/var/lib/docker
Standard
/mnt/cache/appdata/dind/docker
Wert
/mnt/cache/appdata/dind/docker
DOCKER_TLS_CERTDIRVariable

Container Variable: DOCKER_TLS_CERTDIR

Standard
/certs
Wert
/certs

Statistik herunterladen

0
Downloads insgesamt
22,579,612
Dieser Monat
19,953,765
Durchschnittlich / Monat

Gesamte Downloads im Laufe der Zeit

Tabelle laden...

Einzelheiten

Repository
docker:dind
Zuletzt aktualisiert2026-05-08
Erstmals gesehen2022-03-27

Führen Sie Docker-in-Docker-DinD auf Unraid aus.

Docker-in-Docker-DinD ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.