Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After install cnetstat only returns error message #9

Open
alan-czajkowski opened this issue Jun 3, 2022 · 1 comment
Open

After install cnetstat only returns error message #9

alan-czajkowski opened this issue Jun 3, 2022 · 1 comment

Comments

@alan-czajkowski
Copy link

after installing cnetstat into my Docker image like so:

FROM ubuntu:22.04
...
RUN curl -L "https://github.com/microsoft/cnetstat/releases/latest/download/cnetstat.x86_64" > /usr/local/bin/cnetstat \
 && chmod +x /usr/local/bin/cnetstat
...

and running it like so:

$ docker run --rm -it example.com/debug:latest /bin/bash
root@57c6ee799ba3:/# cnetstat 
Error: exit status 1

volume mounting /var/run/docker.sock does not help:

$ docker run --rm -it --volume /var/run/docker.sock:/var/run/docker.sock example.com/debug:latest /bin/bash
root@57c6ee799ba3:/# cnetstat 
Error: exit status 1

tools such as lsns, nsenter, etc. exist in the image

@alan-czajkowski
Copy link
Author

@noahl any help is greatly appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant