Answer the question
In order to leave comments, you need to log in
Why does ip address error occur in docker?
The problem is this, when starting the docker image, an error occurs - Docker
Pool overlaps with other one on this address space
image - mailu , the file configured them with the same tool, it turned out like this -
# This file is auto-generated by the Mailu configuration wizard.
# Please read the documentation before attempting any change.
# Generated for compose flavor
version: '2.2'
services:
# External dependencies
redis:
image: redis:alpine
restart: always
volumes:
- "/mailu/redis:/data"
# Core services
front:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-1.8}
restart: always
env_file: mailu.env
logging:
driver: json-file
ports:
- "10.0.0.10:80:80"
- "::1:80:80"
- "10.0.0.10:443:443"
- "::1:443:443"
- "10.0.0.10:25:25"
- "::1:25:25"
- "10.0.0.10:465:465"
- "::1:465:465"
- "10.0.0.10:587:587"
- "::1:587:587"
- "10.0.0.10:110:110"
- "::1:110:110"
- "10.0.0.10:995:995"
- "::1:995:995"
- "10.0.0.10:143:143"
- "::1:143:143"
- "10.0.0.10:993:993"
- "::1:993:993"
volumes:
- "/mailu/certs:/certs"
- "/mailu/overrides/nginx:/overrides:ro"
admin:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.8}
restart: always
env_file: mailu.env
ports:
- 127.0.0.1:8080:80
volumes:
- "/mailu/data:/data"
- "/mailu/dkim:/dkim"
depends_on:
- redis
imap:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-1.8}
restart: always
env_file: mailu.env
volumes:
- "/mailu/mail:/mail"
- "/mailu/overrides/dovecot:/overrides:ro"
depends_on:
- front
smtp:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-1.8}
restart: always
env_file: mailu.env
volumes:
- "/mailu/mailqueue:/queue"
- "/mailu/overrides/postfix:/overrides:ro"
depends_on:
- front
antispam:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-1.8}
hostname: antispam
restart: always
env_file: mailu.env
volumes:
- "/mailu/filter:/var/lib/rspamd"
- "/mailu/dkim:/dkim:ro"
- "/mailu/overrides/rspamd:/etc/rspamd/override.d:ro"
depends_on:
- front
# Optional services
# Webmail
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.17.0.0/24
Answer the question
In order to leave comments, you need to log in
the problem is that the network 172.17.0.0/24 intersects with the default docker network - 172.17.0.0/16
there are several solutions to the problem
1. remove the networks block in docker-compose.yml, where you describe the default network settings,
then docker itself will create network, most likely 172.18.0.0/16
2. change the subnet for the default network in docker-compose.yml
subnets should not intersect it
makes sense to use the 16 prefix also not
for this and subsequent projects, for example, use networks
172.18.1.0/24
172.18.2.0 /24
172.18.3.0/24
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question