I have just installed Docker on Ubuntu 18.04, and I cannot get access to outside networks from within my container.
I ran docker run --rm -it ubuntu:trusty ping 192.168.1.1
which yields: socket: Permission denied
On the other hand, the command docker run --rm -it ubuntu:trusty whoami
yields root
as expected, meaning the problem occurs inside the container.
How can I debug this?
Thanks in advance.
删除 AppArmor 解决了这个问题:
sudo apt-get purge --auto-remove apparmor
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.