Skip to content

Docker issue

Hill Liu edited this page Mar 2, 2023 · 5 revisions

Docker’s open port with iptable

The open port not same with expose port, you should use container’s private port.

Urgent reset

  sudo iptables -P INPUT   ACCEPT
  sudo iptables -P OUTPUT  ACCEPT
  sudo iptables -P FORWARD ACCEPT
  sudo iptables -F
  sudo iptables -X
  sudo iptables -t nat -F
  sudo iptables -t nat -X
  sudo iptables -t mangle -F
  sudo iptables -t mangle -X
  sudo iptables -Z

  sudo systemctl restart docker.service
Clone this wiki locally