Reputation: 641
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.
Upvotes: 1
Views: 1528
Reputation: 641
Deleting AppArmor fixed the problem:
sudo apt-get purge --auto-remove apparmor
Upvotes: 0