简体   繁体   中英

New Relic Infrastructure Agent can't access /proc/net/dev in Docker with Ubuntu-20.04 WSL2 integration

New Relic Infrastructure agent in docker container can't access its /host/proc/net/dev directory and shows file or directory not found error when I tried to access that directory from the infrastructure agent container terminal. I've been attempting to bind that directory with the fake net as instructed in here but it didn't work either. Here are the container logs: New Relic Infra Agent Container Logs

error means you dont have properly mapped volume /:/host in your docker container or privileged i guess it needs all directives

docker run \
-d \
--name newrelic-infra \
--network=host \
--cap-add=SYS_PTRACE \
--privileged \
--pid=host \
--cgroupns=host  # required on cgroup v2 \
-v "/:/host:ro" \
-v "/var/run/docker.sock:/var/run/docker.sock" \
YOUR_IMAGE_NAME

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM