Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented bind mount type; added tests #4761

Closed
wants to merge 5 commits into from
Closed

Conversation

angrycub
Copy link
Contributor

@angrycub angrycub commented Oct 8, 2018

Implemented the bind mount type. This will allow Windows users to mount absolute paths.

@angrycub angrycub requested review from preetapan and dadgar October 8, 2018 17:27
@@ -168,9 +168,11 @@ type DockerLoggingOpts struct {
}

type DockerMount struct {
Type string `mapstructure:"type"`
Copy link
Contributor

Choose a reason for hiding this comment

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

type should imo be defaulted to volume to keep it compat for now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm.VolumeOptions.DriverConfig = docker.VolumeDriverConfig{
Name: dc.Name,
if hm.Type == "bind" {
volumesEnabled := d.config.ReadBoolDefault(dockerVolumesConfigOption, dockerVolumesConfigDefault)
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be a different client option for allowing dockerVolumesConfigOption and dockerBindVolumesConfigOption?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this to preserve configuration compatibility between the -v style implementation and the mount(type=bind) version to ease migration from one to the other. I think that this could be worth further consideration later though.

@angrycub
Copy link
Contributor Author

@jippi, thanks for the eyes on this. It's on-hold behind a refactor, but I very much appreciate you taking the time to review it.

@dadgar
Copy link
Contributor

dadgar commented Dec 4, 2018

We will need to apply a62a151 once this is rebased

@angrycub
Copy link
Contributor Author

Closing in favor of #4958

@angrycub angrycub closed this Jan 24, 2019
@angrycub angrycub deleted the f-mount-docker branch March 27, 2020 19:30
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 13, 2023
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.

3 participants