docker run -d \
--name unimoni-agent \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc:/host/proc:ro \
-v /sys:/host/sys:ro \
-v unimoni-certs:/etc/unimoni \
-e API_URL=https://api.unimoni.example.com:8443 \
-e ENROLLMENT_TOKEN=${TOKEN} \
unimoni/agent:latest
Compose
services:
unimoni-agent:
image: unimoni/agent:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- unimoni-certs:/etc/unimoni
environment:
API_URL: https://api.unimoni.example.com:8443
ENROLLMENT_TOKEN: ${TOKEN}
volumes:
unimoni-certs: