D4niel
Yes.
I did a docker compose down and that removed the network as well
# docker compose down
# docker network ls
NETWORK ID NAME DRIVER SCOPE
0b21777f6f89 bridge bridge local
6d972e79cf43 host host local
a9e359fdf655 none null local
I then do a docker compose up
# docker compose up -d
[+] Running 17/20
✔ Network mailcowdockerized_mailcow-network Created
✔ Container mailcowdockerized-solr-mailcow-1 Started
⠿ Container mailcowdockerized-redis-mailcow-1 Starting
✔ Container mailcowdockerized-dockerapi-mailcow-1 Started
✔ Container mailcowdockerized-memcached-mailcow-1 Started
✔ Container mailcowdockerized-watchdog-mailcow-1 Started
✔ Container mailcowdockerized-olefy-mailcow-1 Started
⠿ Container mailcowdockerized-sogo-mailcow-1 Starting
⠿ Container mailcowdockerized-unbound-mailcow-1 Starting
✔ Container mailcowdockerized-php-fpm-mailcow-1 Created
✔ Container mailcowdockerized-clamd-mailcow-1 Created
✔ Container mailcowdockerized-mysql-mailcow-1 Created
✔ Container mailcowdockerized-nginx-mailcow-1 Created
✔ Container mailcowdockerized-postfix-mailcow-1 Created
✔ Container mailcowdockerized-dovecot-mailcow-1 Created
✔ Container mailcowdockerized-acme-mailcow-1 Created
✔ Container mailcowdockerized-rspamd-mailcow-1 Created
✔ Container mailcowdockerized-ofelia-mailcow-1 Created
✔ Container mailcowdockerized-netfilter-mailcow-1 Created
✔ Container mailcowdockerized-ipv6nat-mailcow-1 Created
Error response from daemon: user specified IP address is supported only when connecting to networks with user configured subnets
I then checked the network again and got the below
docker network ls
NETWORK ID NAME DRIVER SCOPE
0b21777f6f89 bridge bridge local
6d972e79cf43 host host local
1b980d5b7570 mailcowdockerized_mailcow-network bridge local
a9e359fdf655 none null local
When I inspect the mailcow network
# docker network inspect 1b98
[
{
"Name": "mailcowdockerized_mailcow-network",
"Id": "1b980d5b7570b27da2d5367760342fe52e520d90392c2ea2aef265d80e7553ce",
"Created": "2023-08-03T19:16:17.816494536+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.21.0.0/16",
"Gateway": "172.21.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"21dd083ac4603fa6105b884cb4566c18bc27042f8b0fcf95b16e70fee74875d3": {
"Name": "mailcowdockerized-watchdog-mailcow-1",
"EndpointID": "1c6c3a6c85d64563f130a61ba29dcc4e0bbd87ee57a2ab718f07ddf7f3d87bdb",
"MacAddress": "02:42:ac:15:00:05",
"IPv4Address": "172.21.0.5/16",
"IPv6Address": ""
},
"83f4b07f85517fd53d03840e44d9c322b268259bf3d7fc756329898062f5d379": {
"Name": "mailcowdockerized-olefy-mailcow-1",
"EndpointID": "e2fa7027e42f0ae602f8f8f34d028d3ade81669acda7f4e15350f59f19fdd475",
"MacAddress": "02:42:ac:15:00:02",
"IPv4Address": "172.21.0.2/16",
"IPv6Address": ""
},
"a6c81716149c3115a36535b0807c7b7a4b35121da8f85a009f39b2715c674853": {
"Name": "mailcowdockerized-memcached-mailcow-1",
"EndpointID": "4676ea10fcd71563b09a2d3254a10acddc2338db1490f36824a8be595ebb8539",
"MacAddress": "02:42:ac:15:00:04",
"IPv4Address": "172.21.0.4/16",
"IPv6Address": ""
},
"da5944dbe470047f6ed9fae2d5bfc15b78b08e9b8c1053f4d077d254b0da52be": {
"Name": "mailcowdockerized-dockerapi-mailcow-1",
"EndpointID": "7fe4cb6ec16846716a52cbe49d36277a9c5b01bd4a29eb77c0b944902551e383",
"MacAddress": "02:42:ac:15:00:06",
"IPv4Address": "172.21.0.6/16",
"IPv6Address": ""
},
"dcc1d36520d4232c2af9b8584226927e765b251ce636c4d00286e4c17a8df7f1": {
"Name": "mailcowdockerized-solr-mailcow-1",
"EndpointID": "9b4e5c416614253aa03b811b5056681b74a17f2ae2cee058b4219e3364031d00",
"MacAddress": "02:42:ac:15:00:03",
"IPv4Address": "172.21.0.3/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "mailcow-network",
"com.docker.compose.project": "mailcowdockerized",
"com.docker.compose.version": "2.20.2"
}
}
]
In my mailcow.conf I have IPV4_NETWORK=172.22.1
The 172.22.1 network isn’t being used anywhere else. docker0 is using 172.17.0.1/16 and nic ens18 is assigned a 10.x.x.x address.
I also have IPv6 disabled
#cat docker-compose.override.yml
version: '2.1'
services:
# Disable IPv6
#
# Ref - https://docs.mailcow.email/post_installation/firststeps-disable_ipv6
ipv6nat-mailcow:
image: bash:latest
restart: "no"
entrypoint: ["echo", "ipv6nat disabled in compose.override.yml"]
# Disable IPv6
networks:
mailcow-network:
enable_ipv6: false
I thought when I did a docker network ls I would see the network called “br-mailcow” and not “mailcowdockerized_mailcow-network”
What am I missing?