You may have your iptables altered in a way that forbids DOCKER or DOCKER-USER inbound or outbound traffic. Try doing a sudo iptables-restore < ./iptables.backup if you can.
iptables
DOCKER
DOCKER-USER
sudo iptables-restore < ./iptables.backup