
1 defunct9 2018-06-28 20:03:53 +08:00 via iPhone 这不是坑,当初部署的时候就该考虑到这一点 |
2 chinvo 2018-06-28 20:09:31 +08:00 没记错 UFW 是单独的规则表,不是直接在 iptables 的 INCOMING 和 OUTGOING 上做规则的。 |
3 kslr 2018-06-28 20:55:39 +08:00 记录 How to fix this Fortunately, there's a way to fix this. Go back to the terminal on your Docker server and issue the command sudo nano /etc/default/docker and add the following line: DOCKER_OPTS="--iptables=false" |
4 aoaoho 2018-06-28 22:16:25 +08:00 |
5 Shura 2018-06-28 22:17:40 +08:00 这是一个 feature |
6 rrfeng 2018-07-03 15:31:31 +08:00 via Android 一直对 docker 使用 iptables 做端口转发怀有极大的抵触情绪。 根本不应该出现这个功能。 |
7 Cbdy 2018-07-03 15:37:10 +08:00 via Android -p 的时候记得前面加 ip |
8 yanaraika 2018-07-03 15:41:37 +08:00 这是一个 feature,Docker 新版添加了 DOCKER-USER chain 可以自己在里面添加规则 |
9 mritd 2018-07-03 19:38:21 +08:00 via iPhone 一直就是这样的 |
10 Sylv 2018-12-02 13:33:43 +08:00 今天遇到同样的坑,但不同的是添加 DOCKER_OPTS="--iptables=false" 到 /etc/default/docker 文件的修复方法对于 Ubuntu 并不管用,这是因为用 systemd 来启动 docker 时并不会读取 /etc/default/docker 文件,正确的解决办法是使用 /etc/docker/daemon.json 文件: { "iptables": false } https://github.com/moby/moby/issues/9889 |