[lxc-users] View/mount host's existing directory in a running container...

Srihari Raghavan srihari.raghavan at gmail.com
Wed Oct 12 00:20:44 UTC 2016


All

LXC newbie here...running into a situation where i cannot run Java programs
inside the container due to the fact that some dependent soft links (and
related directories) are not visible from inside the container.

I understand that a mount entry in the LXC startup file would solve that
long-term but want to see whether i can quickly/temporarily map
(specifically, /etc/java-8-xxx ) into the container namespace to test some
things, look at other dependencies etc.,

The link here (
https://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg02620.html)
talks about adding a new directory to make it visible inside a running
container, but want to see if i can make an existing directory made visible
inside the running container, without stopping the container.

Thanks in advance
Sri


>>>

lxc-1$ ls -la /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/

total 70640

drwxr-xr-x 8 root root     4096 Jul  1 19:41 .

drwxr-xr-x 5 root root       86 Jul  1 19:41 ..

lrwxrwxrwx 1 root root       44 Apr 22 13:29 accessibility.properties ->
/etc/java-8-openjdk/accessibility.properties

...

lrwxrwxrwx 1 root root       40 Apr 22 13:29 calendars.properties ->
/etc/java-8-openjdk/calendars.properties

...

>>>

lxc-1$ ls -la /etc/java-8-openjdk/

ls: cannot access /etc/java-8-openjdk/: No such file or directory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161012/d68bf776/attachment.html>


More information about the lxc-users mailing list