docker run --privileged
Turns off all of the docker security.
Has anyone tried to run a container for something like mesos that
execs docker commands, to maybe look like
docker run --privileged -v /:/host -v /run:/run -ti -net=host mesos
/bin/sh
This would cause all of / to be mounted in /host and then you could
execute
/host/usr/bin/docker for example. Not sure why you would want
/var/lib/docker mounted into the mesos container.
On 09/23/2014 09:18 AM, Tim St Clair
wrote:
Scott -
When you mentioned running in "privileged mode" mode, what
does that mean? Could you provide more details.
Cheers,
Tim
From: "Tim
Chen" <tim@xxxxxxxxxxxxx>
To: user@xxxxxxxxxxxxxxxx, "Gabriel Monroy"
<gabriel@xxxxxxxxxxxx>
Sent: Tuesday, September 23, 2014 2:41:17 AM
Subject: Re: Running mesos-slave in Docker container
Hi Grzegorz,
To run Mesos master|slave in a docker container is not
straight forward because we utilize kernel features
therefore you need to explicitly test out the features you
like to use with Mesos with slave/master in Docker.
Gabriel during the Mesosphere hackathon has got master
and slave running in docker containers, and he can
probably share his Dockerfile and run command.
I believe one work around to get cgroups working with
Docker run is to mount /sys into the container (mount -v
/sys:/sys).
Gabriel do you still have the command you used to run
slave/master with Docker?
Tim
--
Cheers,
Timothy St. Clair
Red Hat Inc.
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
|
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct