[lxc-users] Container cannot write to /var/run

Fajar A. Nugraha list at fajar.net
Mon Apr 6 05:39:18 UTC 2015


On Sun, Apr 5, 2015 at 6:29 AM, Bostjan Skufca <bostjan at a2o.si> wrote:
> Is systemd now supported as LXC guest's init system?

Short answer: not yet

It's work in progress. Among others, systemd in container needs lxcfs,
and one of the issues you'd find is
https://github.com/lxc/lxcfs/issues/17 , which is just closed today,
so chances are most people don't have that fix yet.

> On 4 April 2015 at 23:31, CDR <venefax at gmail.com> wrote:
>>
>> My Fedora 20 container, on a Ubuntu 14.04 server, cannot write to
>> /var/run. Is there a secret reason that I use to fix it?
>> Other containers with non-systemd OSs can write just fine to /var/run.


My "fix" for centos7 is pretty simple: remove /var/run directory on
the container rootfs, and add a symlink to /run

-- 
Fajar


More information about the lxc-users mailing list