Skip to content

Deprecate --volume-driver - #16595

Closed
erikh wants to merge 2 commits into
moby:masterfrom
erikh:deprecate-volume-driver
Closed

erikh wants to merge 2 commits into
moby:masterfrom
erikh:deprecate-volume-driver

Conversation

@erikh

@erikh erikh commented Sep 25, 2015

Copy link
Copy Markdown
Contributor

/cc @cpuguy83 @calavera @srust

This deprecates the --volume-driver flag and pre-emptively schedules it for removal in 1.11. Please let me know if any wording needs to be adjusted, as this is principally a docs patch.

Thanks!

-Erik

Fixes #16069

@jessfraz

Copy link
Copy Markdown
Contributor

gofmt

@erikh

erikh commented Sep 25, 2015

Copy link
Copy Markdown
Contributor Author

my save hook wasn’t working, thanks, fixed.

On 25 Sep 2015, at 14:37, Jess Frazelle wrote:

gofmt


Reply to this email directly or view it on GitHub:
#16595 (comment)

@cpuguy83

Copy link
Copy Markdown
Member

It would be good to do this on the daemon side as well (in the daemon logs).
Also there is an open issue for this by @thaJeztah, but I'm on my phone right now so can't find it.

@erikh

erikh commented Sep 25, 2015

Copy link
Copy Markdown
Contributor Author

I’ll dig it up, don’t worry about it.

On 25 Sep 2015, at 14:43, Brian Goff wrote:

It would be good to do this on the daemon side as well (in the daemon
logs).
Also there is an open issue for this by @thaJeztah, but I'm on my
phone right now so can't find it.


Reply to this email directly or view it on GitHub:
#16595 (comment)

@erikh

erikh commented Sep 25, 2015

Copy link
Copy Markdown
Contributor Author

This should be available now, PTAL

On 25 Sep 2015, at 14:43, Brian Goff wrote:

It would be good to do this on the daemon side as well (in the daemon
logs).
Also there is an open issue for this by @thaJeztah, but I'm on my
phone right now so can't find it.


Reply to this email directly or view it on GitHub:
#16595 (comment)

Comment thread docs/misc/deprecated.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Early docs review; This needs its own head, right now it's below "command line short variant options"

@thaJeztah

Copy link
Copy Markdown
Member

Thanks, Erik

@lowenna

lowenna commented Sep 28, 2015

Copy link
Copy Markdown
Member

Could we make this a daemon-side check rather than client? That way, on the Windows path, we could just error out if supplied. Just thinking ahead to remove any possible baggage on the Windows volume support (#16433) which will likely be deprecated by the time we RTM Server 2016.

@erikh

erikh commented Sep 29, 2015

Copy link
Copy Markdown
Contributor Author

It should be both as of the latest revision.

On 28 Sep 2015, at 15:51, John Howard (Microsoft) wrote:

Could we make this a daemon-side check rather than client? That way,
on the Windows path, we could just error out if supplied. Just
thinking ahead to remove any possible baggage on the Windows volume
support (#16433) which will likely be deprecated by the time we RTM
Server 2016.


Reply to this email directly or view it on GitHub:
#16595 (comment)

@erikh

erikh commented Sep 29, 2015

Copy link
Copy Markdown
Contributor Author

Oh, error. I was told to make it warn for now.
-Erik

On 28 Sep 2015, at 15:51, John Howard (Microsoft) wrote:

Could we make this a daemon-side check rather than client? That way,
on the Windows path, we could just error out if supplied. Just
thinking ahead to remove any possible baggage on the Windows volume
support (#16433) which will likely be deprecated by the time we RTM
Server 2016.


Reply to this email directly or view it on GitHub:
#16595 (comment)

@cpuguy83

Copy link
Copy Markdown
Member

major +1 from me

@erikh

erikh commented Sep 29, 2015

Copy link
Copy Markdown
Contributor Author

Can you clarify what I should be doing here, if anything?

@calavera

Copy link
Copy Markdown
Contributor

such a short life 😿

I'm conflicted because I think it's a really nice "one-time-only" thing. But I'll be okay if other maintainers want to deprecate it.

@vdemeester

Copy link
Copy Markdown
Member

I'm conflicted because I think it's a really nice "one-time-only" thing. But I'll be okay if other maintainers want to deprecate it.

@calavera What do you mean by "one-time-only" ? It also feels strange to have --volume-driver and a volume command at the same time though.

@calavera

Copy link
Copy Markdown
Contributor

I know it feels weird to have both. I'm conflicted because I like to do this for certain cases:

$ docker run --rm --volume-driver --volume foo foo:/bar ...

Rather than:

$ docker volume create --driver foo --name foo
$ docker run --rm --volume foo:/bar ...

@calavera

Copy link
Copy Markdown
Contributor

but I can learn to live without it.

@thaJeztah

Copy link
Copy Markdown
Member

Yes, I can understand why you like the simplicity of --volume-driver, I just think it quickly becomes complicated of multiple volumes are involved (including volumes defined in the image).

So apologies for "killing" the flag, but I hope you can understand my reasoning

@jessfraz

jessfraz commented Oct 2, 2015

Copy link
Copy Markdown
Contributor

i kinida like the flag, but im not married to it so either way

@vdemeester

Copy link
Copy Markdown
Member

all right then, I'll drop the ball :-) : LGTM 😉

@calavera

Copy link
Copy Markdown
Contributor

I just think it quickly becomes complicated of multiple volumes are involved

that doesn't imply that we have to kill this flag. We have a whole new api to manage those complicated cases.

I see this flag more as a shortcut for simple cases than an impediment for complicated cases.

@jessfraz

Copy link
Copy Markdown
Contributor

ok so as to get this show on the road it seems like we are all split and until we have concensus lets keep the flag.

@jessfraz jessfraz closed this Oct 15, 2015
@lukemarsden

Copy link
Copy Markdown
Contributor

I am -1 on this because it breaks our integration with tools that use docker run as an integration point.

@thaJeztah

Copy link
Copy Markdown
Member

@lukemarsden -1 on removing the flag, or -1 on closing this PR?

@lukemarsden

Copy link
Copy Markdown
Contributor

-1 on removing the flag. Thanks for clarifying!

@lukemarsden

Copy link
Copy Markdown
Contributor

Also, until we have a docker compose story with first class volumes, we should keep volume_driver here and there, for consistency, IMHO :)

@thaJeztah

Copy link
Copy Markdown
Member

Cool, thanks @lukemarsden

@osallou

osallou commented Jan 11, 2016

Copy link
Copy Markdown

If you create a volume first, how do you handle multi node case?

$ docker volume create --driver foo --name foo
$ docker run --rm --volume foo:/bar ...

With swarm, mesos etc.., container will be scheduled based on requirements (ram, cpu, ...) on a node. If we create the volume first, which docker instance will handle the storage plugin?

docker volume create will call the VolumeDriver.Create on one node then
docker run.. --volume foo will call the VolumeDriver.Mount/Unmount on the node selected by swarm/... ?

@cpuguy83

Copy link
Copy Markdown
Member

@osallou swarm does the create on every node.

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.