Skip to content

[17.03] Fix issue backporting mount spec to pre-1.13 obj#33207

Merged
thaJeztah merged 1 commit intomoby:17.03.xfrom
cpuguy83:cherry_pick_mpsec_backport
May 15, 2017
Merged

[17.03] Fix issue backporting mount spec to pre-1.13 obj#33207
thaJeztah merged 1 commit intomoby:17.03.xfrom
cpuguy83:cherry_pick_mpsec_backport

Conversation

@cpuguy83
Copy link
Member

Cherry-picks #32821 to 17.03 for 17.03.2

ping @thaJeztah @mlaventure

Copy link
Member

Choose a reason for hiding this comment

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

May have missed this in the original PR as well, need a continue here 😓

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

noticed one thing we overlooked, but otherwise looks good

In some cases a mount spec would not be properly backported which could
lead to accidental removal of the underlying volume on container remove
(which should never happen with named volumes).

Adds unit tests for this as well. Unfortunately I had to add a daemon
depdency for the backport function due to looking up `VolumesFrom`
specs.

Signed-off-by: Brian Goff <[email protected]>
(cherry picked from commit 3cf1859)
Signed-off-by: Brian Goff <[email protected]>
@cpuguy83 cpuguy83 force-pushed the cherry_pick_mpsec_backport branch from 7976d2f to d772750 Compare May 15, 2017 19:53
Copy link
Member

@thaJeztah thaJeztah 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
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

All green

@thaJeztah thaJeztah merged commit d333427 into moby:17.03.x May 15, 2017
@cpuguy83 cpuguy83 deleted the cherry_pick_mpsec_backport branch May 25, 2017 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants