Cli: docker deploy behaves differently than stack deploy

Created on 12 Sep 2017  路  6Comments  路  Source: docker/cli

Here @ https://www.meetup.com/preview/Docker-Bamberg/events/242039360 @Govinda-Fichtner and I just realized that docker deploy only works w/experimental mode while docker stack deploy just works. Is this different behavior intended?

Docker version 17.07.0-ce, build 8784753

> docker deploy

docker deploy is only supported on a Docker daemon with experimental features enabled

> docker stack deploy

"docker stack deploy" requires exactly 1 argument(s).
See 'docker stack deploy --help'.

Usage:  docker stack deploy [OPTIONS] STACK

Deploy a new stack or update an existing stack
kinquestion

Most helpful comment

Yes, that is the intended behaviour. We might want to change docker deploy in the future, so it is still experimental.

All 6 comments

Yes, that is the intended behaviour. We might want to change docker deploy in the future, so it is still experimental.

I think this was intended; docker deploy was introduced as an experimental feature (using the bundles format); with the change to group the subcommands per object type (docker _stack_ deploy, docker _container_ run etc.), it was (if I remember correctly) decided to keep the top-level deploy as experimental in case it would be deprecated in favor of docker stack deploy

Oh, lol, @dnephin beat me to it 馃槀

Let me close this one as it's not a bug, but feel free to continue the discussion

Thanks @dnephin and @thaJeztah for explaining! :)

cc @Govinda-Fichtner

it was (if I remember correctly) decided to keep the top-level deploy as experimental in case it would be deprecated in favor of docker stack deploy

That's somehow strange in my use-case since I use a Docker CLI on my machine working against a remote machine with swarm mode, which can't directly be changed.

So not executing the command deploy (locally) and telling me that I need experimental on the daemon makes no sense, regarding that stack deploy just works.

It would be fine if the CLI says that the command is deprecated, but it has nothing to do with the daemon as far as I can see it. Or is there also an experimental mode for the CLI itself?

Was this page helpful?
0 / 5 - 0 ratings