Open obriensystems opened 1 month ago
check bridge
michaelobrien@mbp7 biometric-nbi % docker stop mysql-dev0
mysql-dev0
michaelobrien@mbp7 biometric-nbi % docker network inspect bridge
[
{
"Name": "bridge",
"Id": "27fcc010a2852a3709b4e7b5ada7bf3a5d7021ef810c76743c4e75d7259db2f8",
"Created": "2024-07-18T15:09:34.781752375Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "65535"
},
"Labels": {}
}
]
michaelobrien@mbp7 biometric-nbi % docker run --name mysql-dev0 -v mysql-data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=... -d --network bridge -p 3506:3306 arm64v8/mysql:8.0.38
85712dbc5d286fc62eb32eb11cd1de3887b856561ad96bcfd9bec974ef62a16f
michaelobrien@mbp7 biometric-nbi % docker run -d -p 8888:8080 --network bridge --name biometric-nbi obrienlabs/biometric-nbi:0.0.1-arm
26a065f5bd964978d813b4e772883291de1032d60da5d0c201b33f66a50c1d83
Caused by: java.net.ConnectException: Connection refused
to avoid
https://docs.docker.com/network/network-tutorial-host/