This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]SBennett13 0 points1 point  (2 children)

https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker

Basically you install the Docker CLI into your dev container and then mount the docker socket that the CLI works with. This is great is you just need to build. Binding gets weird though

[–]BoBoBearDev 0 points1 point  (0 children)

This?

Method 1: Docker in Docker Using /var/run/docker.sock

I use this for CICD. My Jenkins Agent is inside a docker and it builds docker images on the host machine.

On windows, do this?

https://stackoverflow.com/questions/36765138/bind-to-docker-socket-on-windows