Reputation: 1399
we are starting to use docker containers in our Azure pipelines.
For one scenario we would need to run the docker container in privileged mode and I am wondering whether Azure pipelines supports "privileged" container execution?
Thank you
Upvotes: 1
Views: 2080
Reputation: 35654
If docker containers are located in Docker Hub or Local Machine, you could run the docker containers in privileged mode.
You could try to run the following script: docker run --privileged [image_name]
steps:
- task: Docker@2
inputs:
containerRegistry: 'DockerServiceConnectionName'
command: 'login'
- script: docker run --privileged [image_name]
You could refer to this ticket about the Azure Container.
Azure Container Instances does not expose direct access to the underlying infrastructure that hosts container groups. This includes running privileged containers and thus it is not supported currently.
Upvotes: 2