Skip to content

Docker should avoid re-using IPs too quickly #1945

@PaulFurtado

Description

@PaulFurtado

When allocating an IP for a container, libnetwork always chooses the lowest IP. This can be a big problem when a container exits and a different container running the same type of service starts on the same IP. Ex:

  • MySQL client configured to retry on connection error
  • A MySQL container for one cluster exits, and another MySQL container for a different cluster starts up with the same IP
  • The client reconnects to the new IP, but it's a totally different database so now the errors are query errors for tables not existing, etc, so the connection is not retried.

This is just one example, but this can happen for just about any service, especially HTTP services in a microservice environment due to their quantity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions