ufw-docker
ufw-docker copied to clipboard
Can't Allow Docker Swarm Ports
I'm using Dokploy, but its ports can't be allowed. This seems to happen only with Dokploy, possibly because it uses Docker Swarm. Am I missing something?
~ docker ps | grep dokploy.1.nzmk3eqhr45qxuwknajuyhnv1
4c8a4f387d79 dokploy/dokploy:v0.26.7 "docker-entrypoint.s…" About an hour ago Up About an hour 0.0.0.0:3000->3000/tcp, [::]:3000->3000/tcp dokploy.1.nzmk3eqhr45qxuwknajuyhnv1
~ ufw-docker status | grep dokploy.1.nzmk3eqhr45qxuwknajuyhnv1
[10] 10.0.1.3 3000/tcp ALLOW FWD Anywhere # allow dokploy.1.nzmk3eqhr45qxuwknajuyhnv1 3000/tcp dokploy-network
~ docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
swlsu9if7dx3 dokploy replicated 1/1 dokploy/dokploy:v0.26.7
09yu39n663n6 dokploy-postgres replicated 1/1 postgres:16
o1laondipn0u dokploy-redis replicated 1/1 redis:7
Hello @chaifeng and @mamlzy I've found the problem that is causing this issue but I don't know how to fix it:
docker service update --image chaifeng/ufw-docker-agent:master-nf_tables ufw-docker-agent
ufw-docker-agent
overall progress: 1 out of 1 tasks
ntxgn8oaokkv: running [==================================================>]
verify: Waiting 5 seconds to verify that tasks are stable...
service update paused: update paused due to failure or early termination of task i6wkaf3t6o9pzbyfy9zudshjg
docker service logs ufw-docker-agent
ufw-docker-agent.0.yaddos6tcx6j@myhostname | iptables: Incompatible with this kernel.
ufw-docker-agent.0.n5vsq4hfro35@myhostname | iptables: Incompatible with this kernel.
ufw-docker-agent.0.fvlgp41umhca@myhostname | iptables: Incompatible with this kernel.
ufw-docker-agent.0.a0w18q71gmh2@myhostname | iptables: Incompatible with this kernel.
Despite using the nf_tables version that should use nftables instead of iptables it's trying to use the legacy iptables. Is it posible?
Thanks for your help!
I've got the same issue !