Hi, @Hendrik

>which seems to be quite a restriction when looking at all the options the 
>docker
cli has
May you provide any examples?

On Sat, Aug 6, 2016 at 3:49 AM, Hendrik Haddorp <[email protected]>
wrote:

> Hi,
>
> in mesos.proto [1] it states:
>     // Allowing arbitrary parameters to be passed to docker CLI.
>     // Note that anything passed to this field is not guaranteed
>     // to be supported moving forward, as we might move away from
>     // the docker CLI.
>     repeated Parameter parameters = 5;
>
> After failing to get my containers started with parameters I checked the
> code in docker.cpp [2] and found this:
>   foreach (const Parameter& parameter, dockerInfo.parameters()) {
>     argv.push_back("--" + parameter.key() + "=" + parameter.value());
>   }
>
> So I can actually only use parameters in the form --KEY=VALUE, which
> seems to be quite a restriction when looking at all the options the
> docker cli has. What is the reason for this limitation and is there any
> way around this?
>
> regards,
> Hendrik
>
> [1] https://github.com/apache/mesos/blob/master/include/mesos/mesos.proto
> [2] https://github.com/apache/mesos/blob/master/src/docker/docker.cpp
>



-- 
Best Regards,
Haosdent Huang

Reply via email to