I have created a docker swarm and created a overlay network but not able to attach containers to overlay network
docker run -d --network overlay --name node-exporter-s101-swarm node-exporter
f3ed6370f414f76ed5536e1e2c0a952eba3e4f6682a5e59fb292a190d31b48fa
docker: Error response from daemon: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded.
Is there any way to enable debug flags for swarm and
cps@vpas-A-bind-master-1:~$ docker network ls
NETWORK ID NAME DRIVER SCOPE
96b3195382a6 bridge bridge local
a00e9f6efc2e docker_gwbridge bridge local
4313a083be65 host host local
yaeyyd3jed0s ingress overlay swarm
1f89bb7818bf none null local
t84uzhsjlgk3 overlay overlay swarm
8a3f8d3ff34e weave weavemesh local
cps@vpas-A-bind-master-1:~$
docker inspect overlay
[
{
“Name”: “overlay”,
“Id”: “t84uzhsjlgk3lsi5tvj7v3f2l”,
“Created”: “2024-05-14T13:14:18.992130604Z”,
“Scope”: “swarm”,
“Driver”: “overlay”,
“EnableIPv6”: true,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “10.0.0.0/16”,
“Gateway”: “10.0.0.1”
}
]
},
“Internal”: false,
“Attachable”: true,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: null,
“Options”: {
“com.docker.network.bridge.enable_icc”: “true”,
“com.docker.network.bridge.enable_ip_forwarding”: “true”,
“com.docker.network.bridge.enable_ip_masquerade”: “true”,
“com.docker.network.bridge.name”: “overlay”,
“com.docker.network.driver.overlay.vxlanid_list”: “4097”
},
“Labels”: null
}
]
docker inspect docker_gwbridge
[
{
“Name”: “docker_gwbridge”,
“Id”: “a00e9f6efc2eb380613cfbb0d61848d1acc99f61ec8f8a29d9c61d642bbb0a20”,
“Created”: “2024-05-14T13:13:22.917187446Z”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.18.0.0/16”,
“Gateway”: “172.18.0.1”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“ingress-sbox”: {
“Name”: “gateway_ingress-sbox”,
“EndpointID”: “92301d421c9746222a780c1e94049f1c8753e872275a6f77c1d528237045e206”,
“MacAddress”: “02:42:ac:12:00:02”,
“IPv4Address”: “172.18.0.2/16”,
“IPv6Address”: “”
}
},
“Options”: {
“com.docker.network.bridge.enable_icc”: “false”,
“com.docker.network.bridge.enable_ip_masquerade”: “true”,
“com.docker.network.bridge.name”: “docker_gwbridge”
},
“Labels”: {}
}
]
docker inspect bridge
[
{
“Name”: “bridge”,
“Id”: “96b3195382a6206390a3e908b734a914418c7e79f71c64ff633d2803f856e73c”,
“Created”: “2024-05-14T12:36:19.867387568Z”,
“Scope”: “local”,
“Driver”: “bridge”,
“EnableIPv6”: true,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.17.0.0/16”,
“Gateway”: “172.17.0.1”
},
{
“Subnet”: “fd00:dead:beef::/48”,
“Gateway”: “fd00:dead:beef::1”
}
]
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“4d697c305164f8ec73dbcc590c10309905152af958224b54e39475fdf26f31ed”: {
“Name”: “engine-proxy-d4778d845cd81a636b7a1c5c426a1e38”,
“EndpointID”: “b2d4312d8fe153abaa659c357bc0526d4f90c44d0f27c5db297ac35f6fefbd04”,
“MacAddress”: “02:42:ac:11:00:03”,
“IPv4Address”: “172.17.0.3/16”,
“IPv6Address”: “fd00:dead:beef::242:ac11:3/48”
},
“7b7166bf82642aac429311d3cf90a07f82669ab1fba004d51768395064536fad”: {
“Name”: “host-monitor”,
“EndpointID”: “e4e0813e07e25db8f5790f1063545e401158e3a985a24e46c4cf5a1f7fbd3a61”,
“MacAddress”: “02:42:ac:11:00:04”,
“IPv4Address”: “172.17.0.4/16”,
“IPv6Address”: “fd00:dead:beef::242:ac11:4/48”
},
“d6c5d7f12ba734d771ccf599a02aa15d002a0728bc6d0d517318b7cd8437cd80”: {
“Name”: “registry”,
“EndpointID”: “9267b9369b003a4d33d41e3e09c565e86bcc01938bd5377e7b92c214e95a7b04”,
“MacAddress”: “02:42:ac:11:00:02”,
“IPv4Address”: “172.17.0.2/16”,
“IPv6Address”: “fd00:dead:beef::242:ac11:2/48”
}
},
“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”: “1500”
},
“Labels”: {}
}
]