brooklyncentral / clocker

Apache Brooklyn cloud native infrastructure blueprints
Apache License 2.0
428 stars 66 forks source link

Support more options when running containers #222

Open sjcorbett opened 8 years ago

sjcorbett commented 8 years ago

I'd like to run containers requiring a more interesting set of arguments. For example, OpenShift Origin:

docker run -d --name "origin" \
        --privileged --pid=host --net=host \
        -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys -v /var/lib/docker:/var/lib/docker:rw \
        -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes \
        openshift/origin start

At the moment I cannot do this because it is not possible to indicate --privileged (see #221), --pid and --net.

grkvlt commented 8 years ago

You don't need --net=host when using Calico and see my comment on #221 but the --pid option should be useful.

grkvlt commented 8 years ago

Also, we don't yet support rw and ro flags on volumes, this would be nice.

andreaturli commented 8 years ago

Would that

andreaturli commented 8 years ago

https://github.com/jclouds/jclouds-labs/pull/240 be useful?