Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

How to run docker inside azure container instance? #35

Open
iocuydi opened this issue Dec 3, 2019 · 2 comments
Open

How to run docker inside azure container instance? #35

iocuydi opened this issue Dec 3, 2019 · 2 comments

Comments

@iocuydi
Copy link

iocuydi commented Dec 3, 2019

Hi, how can I run docker commands such as building a docker image, inside an azure container instance, that is itself running a docker image?

According to this link: https://stackoverflow.com/questions/52973546/docker-in-docker-in-aks

you can do this in AKS by mounting /var/run/docker.sock with hostpath. However there is no hostpath param for ACI. Is there any equivalent operation for ACI?

This issue: microsoft/azure-pipelines-agent#2056 seems to suggest this can be done by specifying "options" but as far as I can tell there is no options command for ACI either.

Clearly docker is running on the vm, how can I get this docker in docker functionality for ACI?

Thanks!!

@marfier
Copy link

marfier commented Jun 6, 2020

I hope we can get an update on this soon.

@cpdohert
Copy link

The current ACI documentation indicates that container instances now run with full hypervisor isolation for security (no shared host). If that's the case, there's no technical reason an ACI container couldn't be run in privileged mode, which would allow for docker-in-docker to work.

The use case of being able to instantiate ACI instances for surge building and performing builds inside a container would be a massive gamechanger for CI.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants