Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Conversation

@deviantony
Copy link
Contributor

This PR changes how the check to determine if a container is already connected to a network is done. It uses Network.RealName instead of Network.Name.

A network defined inside ServiceConfig.Networks usually have the following properties:

  • RealName: projectname_networkname
  • Name: networkname

The network map returned by Container.Networks() use the first form (projectname_networkname) as keys.

Fix #480

Signed-off-by: Anthony Lapenna [email protected]

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐮

@vdemeester vdemeester merged commit e24f3d5 into docker-archive-public:master Sep 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants