E.g.:
pool:
vmImage: 'ubuntu-16.04'
container: ubuntu:16.04
steps:
- script: printenv
glibc
-basedENTRYPOINT
USER
has access to groupadd
and other privileges commands without sudo
pool:
vmImage: 'windows-2019'
container: mcr.microsoft.com/windows/servercore:ltsc2019
steps:
- script: set
E.g.:
resources:
containers:
- container: my_container
image: ubuntu:16.04
- container: nginx
image: nginx
- container: redis
image: redis
pool:
vmImage: 'ubuntu-16.04'
container: my_container
services:
nginx: nginx
redis: redis
steps:
- script: |
apt install -y curl
curl nginx
apt install redis-tools
redis-cli -h redis ping
nginx
and redis
containers from Docker Hub and then starts the containersservices
name.apt
, curl
and redis-cli
commands inside the ubuntu:16.04
container.nginx
and redis
host names resolve to the correct services using Docker networking