• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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