You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copy the given fstab verbatim and use lxc.mount = option
translate the content of the file to corresponding lxc.mount.entry
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/111#issuecomment-15462016
.
Short term.
The command-line binding proposed by @synack would work great. That would make an easy way to persist data, with minimal "out of docker" instrumentation. My personal taste would be to reverse the args, e.g. dotcloud run base -volume /path/in/container=/path/on/host, but that's just me.
Mid term.
I don't know what we want in the config.json file. FTR, on the current dotCloud platform (which uses the cloudlets format, this is split between two parts: manifest and config. The manifest is the conceptual equivalent of a class definition. It says "to run this, I need one tcp port for SSH, and another for SQL; and also, /var/lib/mysql should be a persistent volume". The config is the instantiated version, so it tells exactly which port was allocated, which volume was binded, etc.
It looks like we might have port information in the image json file (to mention "hey, that image exposes a service on port 5432, so by default, dotcloud run should automatically add -p 5432 unless overriden").
If that's so, it would make sense to also mention which paths are supposed to be volumes, if only for mere introspection purposes.
Then, if we implement container tagging, it would integrate very neatly to provide persistent data storage. I.E. by default, you get a tmpfs on each volume, but if the container is tagged, then volume foo is bound from e.g. /var/lib/docker/volumes/<containertag>/foo.
Long term.
I believe that storage providers will be an important feature. It's too early to discuss that in detail I guess; but the idea would be to allow docker to interface with storage systems like LVM, btrfs, iSCSI, NFS, glusterfs, ceph... The scheme used by Xen 3 for network and block devices is not perfect, but it's a good source of inspiration (TL,DR: it allows to specify that e.g. /dev/xvdk should be myiscsi:foobar, and it will offload to a myiscsi script the task of locating foobar and making it available, whatever that means; so it is fairly extendable without touching the core). Of course docker wouldn't implement all those interfaces, but provide something that makes it easy for everyone to hook up whatever they need in the system.
(Just for the record) I realized one thing: the bound directory should somehow excluded from what is being tracked as "changes". I am not sure if a straightforward implementation would work right away.
.. and the design will solve your MTA example, jerome, as well as all those listed in this issue.
— @solomonstre @getdocker
On Wed, Apr 24, 2013 at 4:16 PM, Jérôme Petazzoni [email protected] wrote:
I had an interesting discussion with @mpetazzoni yesterday about a rather
contrived use-case: using containerization to provide isolated environment
for remote shell access on a multi-user server.
Specifically, the concern was to operate the local MTA in a separate
container, but still deliver mails to e.g. ~/Maildir (per-user).
The challenge here is "partial volume sharing", i.e. the "shell" containers
should be given access only to /home/$USERNAME (for a unique $USERNAME),
while the MTA should be able to access /home/$USERNAME/Maildir (for all
users of the system).
On Wed, Apr 24, 2013 at 3:49 PM, Evan [email protected] wrote:
Another use case for exposing the host file system is for communication
via Unix Domain Sockets, mqueues, , all which use files as the connection
point. Or maybe also exposing serial ports in /dev?
The original proposal at the top of this thread would allow this, however,
I don't think the "data volumes" spec covers it since it only deals with
container-to-container bridging and extraction.
This is concept definitely opposed to @shykeshttps://github.com/shykescomment regarding repeatability on different hosts. Similarly, what I tried
to do here with pinning CPUs (#439#439)
is host-specific, albeit repeatable only if different hosts supports all
the same key/values. But people who do this would be using some way of
configuring/maintaining it all (like picking service endpoints
filepaths/host:port or making sure all processes aren't pinned to the same
CPU).
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/111#issuecomment-16977366
.
Reply to this email directly or view it on GitHub: #111 (comment)
Activity
sa2ajj commentedon Mar 26, 2013
would it be possible to have a some sort of
--fstaboption that'd result in addinglxc.mount.entryentries in the container's config file??sa2ajj commentedon Mar 26, 2013
actually, there are two options here:
fstabverbatim and uselxc.mount =optionlxc.mount.entryshykes commentedon Mar 26, 2013
The key principle to keep in mind is that we want to minimize how much the
container's execution environment depends on the host's.
On Tue, Mar 26, 2013 at 7:40 AM, Mikhail Sobolev
[email protected]:
jpetazzo commentedon Mar 27, 2013
The command-line binding proposed by @synack would work great. That would make an easy way to persist data, with minimal "out of docker" instrumentation. My personal taste would be to reverse the args, e.g.
dotcloud run base -volume /path/in/container=/path/on/host, but that's just me.I don't know what we want in the
config.jsonfile. FTR, on the current dotCloud platform (which uses the cloudlets format, this is split between two parts:manifestandconfig. Themanifestis the conceptual equivalent of a class definition. It says "to run this, I need one tcp port for SSH, and another for SQL; and also, /var/lib/mysql should be a persistent volume". Theconfigis the instantiated version, so it tells exactly which port was allocated, which volume was binded, etc.It looks like we might have port information in the image json file (to mention "hey, that image exposes a service on port 5432, so by default,
dotcloud runshould automatically add-p 5432unless overriden").If that's so, it would make sense to also mention which paths are supposed to be volumes, if only for mere introspection purposes.
Then, if we implement container tagging, it would integrate very neatly to provide persistent data storage. I.E. by default, you get a tmpfs on each volume, but if the container is tagged, then volume
foois bound from e.g./var/lib/docker/volumes/<containertag>/foo.I believe that storage providers will be an important feature. It's too early to discuss that in detail I guess; but the idea would be to allow docker to interface with storage systems like LVM, btrfs, iSCSI, NFS, glusterfs, ceph... The scheme used by Xen 3 for network and block devices is not perfect, but it's a good source of inspiration (TL,DR: it allows to specify that e.g.
/dev/xvdkshould bemyiscsi:foobar, and it will offload to amyiscsiscript the task of locatingfoobarand making it available, whatever that means; so it is fairly extendable without touching the core). Of course docker wouldn't implement all those interfaces, but provide something that makes it easy for everyone to hook up whatever they need in the system.sa2ajj commentedon Mar 27, 2013
(Just for the record) I realized one thing: the bound directory should somehow excluded from what is being tracked as "changes". I am not sure if a straightforward implementation would work right away.
jpetazzo commentedon Mar 27, 2013
That will actually work out of the box—because docker tracks changes by checking the AUFS layer, and a bind mount wouldn't show up in the layer.
tadev commentedon Mar 29, 2013
+1 want
titanous commentedon Mar 29, 2013
👍 I want to see if I can get Ceph running in docker so that I can get docker running on Ceph.
39 remaining items
shykes commentedon Apr 24, 2013
.. and the design will solve your MTA example, jerome, as well as all those listed in this issue.
—
@solomonstre
@getdocker
On Wed, Apr 24, 2013 at 4:16 PM, Jérôme Petazzoni
[email protected] wrote:
creack commentedon May 7, 2013
Closed by #376
niclashoyer commentedon May 7, 2013
does the pull request #376 solve the use cases mentioned here? If so, is there any documentation about how to use it?
Merge pull request moby#111 from runcom/vivek-fixes-1.10.3
Merge pull request moby#111 from ndeloof/PortMapping_String
Merge pull request moby#111 from aboch/lk