Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenIM-Docker Deployment Issue: Network Overlap #14

Closed
cubxxw opened this issue Sep 8, 2023 — with Slack · 7 comments
Closed

OpenIM-Docker Deployment Issue: Network Overlap #14

cubxxw opened this issue Sep 8, 2023 — with Slack · 7 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

Copy link
Contributor

cubxxw commented Sep 8, 2023

OpenIM-Docker Deployment Issue: Network Overlap

When deploying OpenIM-Docker using docker-compose, you may encounter the following error:

✘ Network openim-docker_openim-server  Error                           0.0s 
failed to create network openim-docker_openim-server: Error response from daemon: Pool overlaps with other one on this address space

Or there might be issues connecting to the MySQL component.

Diagnosis:

This error occurs because a network gateway on your local machine conflicts with the network that Docker is trying to create.

  1. Use the ifconfig command or the ip a command to view the networks being used on your host machine.

Solutions:

1. Removing Duplicate Networks

If there's a duplicate Docker network that's no longer in use:

  1. List all Docker networks with:

    docker network ls
  2. Identify any networks that are redundant or unused and remove them:

    docker network rm {NETWORK_ID}
  3. Refresh the configuration files:

    make init
    # or
    ./scripts/init-config.sh
  4. Restart the services:

    docker compose stop;
    docker compose rm;
    docker compose up -d;

2. Addressing System-Level Overlaps

If the problem stems from Docker system configurations (due to Docker updates, uninstallation issues, or overlapping network segments):

  1. Set a new network segment using environment variables. For instance, 172.29.0.0/16:

    export DOCKER_BRIDGE_SUBNET=172.29.0.0/16
  2. Refresh the configuration files:

    make init
    # or
    ./scripts/init-config.sh
  3. Restart the services:

    docker compose up -d

Additional Information:

  • Always ensure that your Docker configurations don't conflict with existing network setups.
  • Regularly check and clean up redundant or unused Docker networks to maintain a streamlined system.
  • When changing Docker network configurations, always document the changes and ensure team members are informed.

This FAQ offers an insight into addressing potential Docker network conflicts that can arise during deployments. Familiarity with Docker commands and understanding of networking basics is key in resolving such issues swiftly.

@cubxxw cubxxw added bug Something isn't working good first issue Good for newcomers labels Sep 8, 2023 — with Slack
@cubxxw cubxxw self-assigned this Sep 8, 2023
@kubbot
Copy link
Contributor

kubbot commented Sep 8, 2023

This issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨
Join slack 🤖 to connect and communicate with our developers.
If you wish to accept this assignment, please leave a comment in the comments section: /accept.🎯

@kubbot
Copy link
Contributor

kubbot commented Sep 8, 2023

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@cubxxw
Copy link
Contributor Author

cubxxw commented Sep 9, 2023

/accept

@kubbot
Copy link
Contributor

kubbot commented Nov 8, 2023

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

2 similar comments
@kubbot
Copy link
Contributor

kubbot commented Jan 8, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@kubbot
Copy link
Contributor

kubbot commented Mar 9, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@skiffer-git
Copy link
Member

The Docker deployment plan has been fully upgraded. Please refer to the README for the new scheme.
The new scheme is simpler to use and supports Linux, Windows, and Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants