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
dnet: Failed to open device docker0 #2374
Comments
Let's see your docker network:
|
try adding '-e lo' and '-Pn'to your string:
|
I figured it out. apparmor is blocking nmap from probing the network, it worked once I've removed the apparmor policy. |
AppArmor within the container or on your host? |
@SporadicThought I've installed nmap with snap on the host, not within the container. Apparmor is enabled for nmap by default, totally weird:
|
Thank you for clarification. I have not noticed AppArmor enabled by default on my installations of 20.04, I'm fairly certain it is not. I do not use nmap via snap, however. |
try |
Hi there, I'm unable to scan a docker container on a Ubuntu 20.04 host:
The text was updated successfully, but these errors were encountered: