What are good ways to run container inside container for development purpose?
Ask HN: Ways to run container inside container for development purpose?
1–9 of 9 posts
Re: Ask HN: Ways to run container inside container for development purpose?
#2Example: https://gitlab.com/hesamian/milwaukee-internationals-dotnet/...
Run docker insider docker. I use this in gitlab.ci to build docker image and push the build docker image to docker hub/heroku docker image hub.
Re: Ask HN: Ways to run container inside container for development purpose?
#3Re: Ask HN: Ways to run container inside container for development purpose?
#4dind: https://hub.docker.com/_/docker Example: https://gitlab.com/hesamian/milwaukee-internationals-dotnet/... Run docker insider docker. I use this in gitlab.ci to build docker image and push the build docker image to docker hub/heroku docker image hub.
Re: Ask HN: Ways to run container inside container for development purpose?
#5Re: Ask HN: Ways to run container inside container for development purpose?
#6I never bothered with the first.
For the second is enough to mount the docker socket from the HOST machine inside your host container (and obviously have the docker client available in your host container). I'm using this in our bitbucket pipelines (there is a setting in the pipeline config that mounts the socket for you).
Re: Ask HN: Ways to run container inside container for development purpose?
#7There are two concepts here: running the docker daemon inside your host container AND running only the docker client inside the host container. I never bothered with the first. For the second is enough to mount the docker socket from the HOST machine inside your host container (and obviously have the docker client available in your host container). I'm using this in our bitbucket pipelines (there is a setting in the…
Re: Ask HN: Ways to run container inside container for development purpose?
#8Re: Ask HN: Ways to run container inside container for development purpose?
#9Podman https://podman.io/ works fine, I use it to build container images on Kubernetes.