• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Docker network issue

wemrekurt

New Pleskian
Server operating system version
Centos 7
Plesk version and microupdate number
18
Hello everyone,
I'm working with docker containers. In total, there are 33 containers running websites. They all run on different ports. Connected to domain names with proxy rules. I started getting the following error when I ran docker-compose run app xxx
Code:
ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

Here is my docker-compose.yml file
YAML:
version: '3.1'

services:
  app:
    container_name: ${APP_NAME}_app
    build:
      context: .
      dockerfile: ./docker/app/Dockerfile
      args:
        - APP_NAME=${APP_NAME}

    volumes:
      - /var/www/master.key:/var/www/${APP_NAME}/config/master.key
      - /etc/nginx/conf.d/sockets:/var/www/${APP_NAME}/tmp/sockets
      - ./cache:/var/www/${APP_NAME}/cache
      - ../public:/var/www/${APP_NAME}/public
      - ../logs:/var/www/${APP_NAME}/log
      - ../themes/node_modules:/var/www/${APP_NAME}/node_modules

    environment:
      - APP_NAME=${APP_NAME}
      - DATABASE_HOST=${DATABASE_HOST}
      - DOMAIN_NAME=${DOMAIN_NAME}
      - E_TICARET_DATABASE=${E_TICARET_DATABASE}
      - E_TICARET_DATABASE_USERNAME=${E_TICARET_DATABASE_USERNAME}
      - E_TICARET_DATABASE_PASSWORD=${E_TICARET_DATABASE_PASSWORD}
      - ELASTICSEARCH_URL=${ELASTICSEARCH_URL}
      - RAILS_SERVE_STATIC_FILES=${RAILS_SERVE_STATIC_FILES}
    ports:
      - ${APP_PORT}:3000
    restart: always

Also I tried the create subnet network.

YAML:
networks:
  default:
    driver: bridge
    ipam:
      config:
        - subnet: 10.10.1.0/24

It works like this but when i want to run new container with same subnet I get this error;

Code:
ERROR: Pool overlaps with other one on this address space

Can anyone help?
 
Back
Top