moby / swarmkit

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
Apache License 2.0
3.37k stars 616 forks source link

Specifying multiple arguments to "swarmctl service create" is awkward #977

Open aaronlehmann opened 8 years ago

aaronlehmann commented 8 years ago

If I want to run a command which is more than one shell word, like ping domain.com, I have to do something like this:

./bin/swarmctl service create --image busybox --args ping --args domain.com --name ping

Specifying --args once for each word in the command is very strange. We should probably interpret the args that are not associated with a flag as part of the command, instead of having --args.

dperny commented 8 years ago

yeah that's weird. it doesn't work if you enclose it in quotes, either, which i would have expected it to. i feel certain it worked sensibly in a previous version.

olljanat commented 6 years ago

@aaronlehmann I just going through old issues here.

Referenced PR have been merged. Can we close this one?