famous-accountant-54532
04/08/2025, 9:26 AMDocker version 28.0
, when we run a Zookeeper container, the Zookeeper container port 2181 is not reachable from other hosts. It was working until Docker version 27.5.1
.
docker run -d \
--name zookeeper \
-p 2181:2181 \
zookeeper:latest
It has been due to Docker version 28.0
add below iptable rule
# iptables -L -t nat -v -n |grep 2181
# Warning: iptables-legacy tables present, use iptables-legacy to see them
30 1748 DNAT tcp -- !docker0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2181 to:10.1.215.5:2181
Docker doc https://docs.docker.com/engine/release-notes/28/#networking mentioned, if we add DOCKER_INSECURE_NO_IPTABLES_RAW=1
env variable then it will skip adding RAW table rules. but its not working.
[Service]
Environment="DOCKER_INSECURE_NO_IPTABLES_RAW=1"
any help/idea please.refined-airline-16629
04/08/2025, 9:28 AMfamous-accountant-54532
04/08/2025, 9:29 AMsticky-summer-13450
04/08/2025, 11:49 AM#k3s
channel is mentioned because k3s is recommended in the "Getting started with Kubernetes" section.
I think you are in the "Getting Started with Docker" section, where Kubernetes (of which K3s is a distribution) is not relevant. You are not necessarily going to know that. As I say, I think that "Contact" section in confusing.
Good luck with getting support from one of the other contact suggestions 🙂