Skip to content

Network aliases created with full container name & not short name #2248

@skelethan

Description

@skelethan

Per https://github.com/docker/compose/blob/0409b287ad3ede39282c199d611456aab15dca71/docs/networking.md

image

However, what I am seeing is that the aliases are created with the full container name from compose e.g. context_web_1

This eliminates the benefit of consistent aliases, as compose will dynamically assign network alias depending on number of containers & where they are run from.

My simple test below.
image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions