Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jun 12, 2019

backport of moby#39137 for 19.03

fixes docker/for-linux#632

Signed-off-by: Arko Dasgupta [email protected]

- What I did

Made sure the Networks context is manipulated in the scenario when a container attempts to attach to an a network it is already connected to

- How I did it
When attaching to a network in findAndAttachNetwork make sure you return with an error when that network is already part of container.NetworkSettings.Networks

- How to verify it
Followed the same steps in the issue and made sure it is resolved

- Description for the changelog
Fix an issue where connecting a container to a network it's already connected to removes its IP address.

- A picture of a cute animal (not mandatory but encouraged)

Arko Dasgupta added 2 commits June 12, 2019 20:00
retries to attach to a network, it is already connected to

Fixes - docker/for-linux#632

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 871acb1)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 31e8fcc)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 19.03.1 milestone Jun 12, 2019
@thaJeztah
Copy link
Member Author

ping @arkodg @cpuguy83

Copy link

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewhsu andrewhsu merged commit da6dddc into docker-archive:19.03 Jun 18, 2019
@thaJeztah thaJeztah deleted the 19.03_backport_attach_to_existing_network_error branch June 18, 2019 22:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants