Files
docker-configs/init-net/docker-compose.yml

12 lines
492 B
YAML
Executable File

version: "3.8"
services:
init-net:
image: alpine:latest
container_name: init-macvlan-shim
network_mode: host # CRÍTICO: Para ver las interfaces del NAS
privileged: true # CRÍTICO: Para poder crear interfaces
restart: "no" # Solo queremos que corra al arrancar el motor Docker
volumes:
- /volume1/docker/.bin/macvlan-shim.sh:/script.sh:ro
entrypoint: ["/bin/sh", "-c", "apk add --no-cache iproute2 > /dev/null 2>&1 && /bin/sh /script.sh"]