NDB Cluster docker IP addresses
I am setting up a 5 node cluster 1 mgmt 1 sql and 3 data nodes I am having issues with the ip address
I have not been able to get docker to bring up the cluster without using the 192.168.0.0/24 network
any suggestions?
this is my docker-compose on the mgmt
Networks:
cluster_lan:
driver: macvlan
driver_opts:
parent: ens19 # your LAN NIC
ipam:
config:
- subnet: 192.168.0.0/24
gateway: 192.168.0.1
volumes:
mgmd-data: {}
services:
management1:
image: container-registry.oracle.com/mysql/community-cluster:8.4
container_name: management1
command: ["ndb_mgmd", "--config-file=/etc/mysql-cluster/config.ini", "--ndb-nodeid=1", "--initial"]
restart: unless-stopped
networks:
cluster_lan:
ipv4_address: 192.168.0.2
volumes:
- ./mysql-cluster/config.ini:/etc/mysql-cluster.cnf:ro
# - ./mysql-cluster/config.ini:/etc/mysql-cluster/config.ini:ro
- mgmd-data:/var/lib/mysql-cluster
# Host-facing proxy: listens on the VM host's :1186 and forwards to 192.168.0.2:1186
mgmd-proxy:
image: alpine/socat
container_name: mgmd-proxy
network_mode: host
restart: unless-stopped
depends_on: [management1]
command: ["TCP-LISTEN:1186,reuseaddr,fork","TCP:192.168.0.2:1186"]
~
Subject
Views
Written By
Posted
NDB Cluster docker IP addresses
230
October 23, 2025 07:20AM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.