From: Michael Tokarev <mjt-XAri/EZa3C4vJsYlp49lxw@public.gmane.org>
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Adding a mount after container is running?
Date: Wed, 03 Nov 2010 12:52:59 +0300 [thread overview]
Message-ID: <4CD130FB.9060408@msgid.tls.msk.ru> (raw)
Hello.
What is the way to add a new filesystem mount to
an already running container? I want to "propagate"
a newly created filesystem, or another part of host
filesystem, to a container without restarting it.
I can imagine a way to "propagate" a new filesystem -
by (maybe temporarily) granting access for the
block device in question to the container and
doing a real mount from there. I'm not sure if
it's equivalent to a bind-mount in terms of
resulting behavour (I sent this question to
lkml a few mins ago), but at least this is
easily doable.
But if I want to add a part of existing filesystem
tree to my container, things becomes somewhat less
clean. Still doable in a similar way - by mounting
it in container in a temp place, bind-mounting a
needed part to the right place, and umounting the
temp one. But it's not clean ;)
Is there a better way?
Thanks!
/mjt
reply other threads:[~2010-11-03 9:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CD130FB.9060408@msgid.tls.msk.ru \
--to=mjt-xari/eza3c4vjsylp49lxw@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.