Open epomatti opened 2 years ago
I'm trying to set up datadog agent on WSL2 as well and I'm also getting all kinds of errors. I have no idea how to fix them.
For example:
2022-10-11 06:28:11 UTC | CORE | WARN | (pkg/collector/corechecks/containers/docker/check_network.go:261 in findDockerNetworks) | Cannot list routes for container id 7d58be81bd5c8e99361d551323e699bed47ebf02b40238c24f8ffcc18de4efc9: unable to read file at: /host/proc/2736/net/route, err: open /host/proc/2736/net/route: no such file or directory, skipping
2022-10-11 06:15:19 UTC | CORE | ERROR | (pkg/util/containers/v2/metrics/system/collector_linux.go:69 in newSystemCollector) | Unable to initialize cgroup provider (cgroups not mounted?), err: open /host/proc/mounts: no such file or directory
i am still getting the same issues and the agent is not sending me any traces. Anyone can help me pls
This issue it's because Docker Windows WSL don't storage containers in default /var/lib/docker/containers.
Running the
docker run
command as explained in the getting started documentation is giving me all sorts of errors related to volume mapping.Why is the provided documentation commands giving all of these erros? Is it because I'm running on WSL2?
Here is the full error stack: https://gist.github.com/epomatti/82d53ee5ab55d93aee5c6c22f3556226
This is the command, copy-pasted from the documentation:
The WSL integration is properly set up for my host: