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"]