a bit OT related to this thread but from what Fajar has posted here it almost sounds like you shouldn't/couldn't use debian inside a container unless you are prepared to conduct far from trivial post launch system tweaking (reinstalling systemd was mentioned)

Is that a valid assumption?



On 5/19/2017 8:26 AM, Fajar A. Nugraha wrote:
On Fri, May 19, 2017 at 7:16 AM, Saint Michael <[email protected] <mailto:[email protected]>> wrote:

    The host is Ubuntu 16.04.2 LTS, the container is Debian GNU/Linux 7


    On Thu, May 18, 2017 at 8:13 PM, Saint Michael <[email protected]
    <mailto:[email protected]>> wrote:

        In my debian container, it is file.
        It gets recreated all the time I reboot.



What happens when you delete the file, and create it as symlink. Is it replaced by a regular file after reboot, or the symlink stays as is?

        what am I doing wrong?



Probably integration issues with the template you're using. As in, some default debian package/settings isn't suitable to be run inside a container, and no workaround is in place yet in the container template. In the past I even had to manually replace systemd in jessie with the one from squeeze to make it work correctly.

        This is the config file
        lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
        lxc.mount.entry = sysfs sys sysfs defaults  0 0
        lxc.tty = 4
        lxc.pts = 1024
        lxc.cgroup.devices.deny = a
        lxc.cgroup.devices.allow = c 1:3 rwm



Are these added manually?

IIRC when you use the "download" template (NOT the debian template), the generated config files should be different. If you haven't done so, try the download template.

--
Fajar


_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

--
Gunnar Wagner | Yongfeng Village Group 12 #5, Pujiang Town, Minhang District, 201112 Shanghai, P.R. CHINA
mob +86.159.0094.1702 | skype: professorgunrad | wechat: 15900941702
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to