[systemd-devel] Issue regarding running systemd under a container

Atul Singh atullh at gmail.com
Fri Oct 16 07:39:24 UTC 2020


Hello systemd-devel,

I am working to dockerize the buildroot based rootfs.
While dockerization if I run the container with privilege mode am able to
run the container and it works fine.

But, when I try to run/restart other containers I get the below error
message during docker run.

Please advise how to resolve this issue.

        "Id":
"0d7dd883d5441719b623b64473d5ff08be27596b240eed97fe4d6f36d612afc2",
        "Created": "2020-10-16T07:31:19.992526641Z",
        "Path": "./HW",
        "Args": [],
        "State": {
            "Status": "created",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 128,

*            "Error": "cgroups: cannot find cgroup mount destination:
unknown",*            "StartedAt": "0001-01-01T00:00:00Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },

*My compose file mentioned below:*

     image: test:atul
     environment:
       - STORAGE_HOST=/var/lib/docker/volumes/atul
     cap_add:
       - CAP_SYS_ADMIN
       - SYS_ADMIN
       - CAP_MKNOD
     tmpfs:
       - /run
       - /tmp
     volumes:
       - /var/lib/docker/volumes/atul:/mnt
       - /sys:/sys:ro
     network_mode: "host"
     privileged: true



Thanks and Regards
  Atul Kumar Singh

          *I Support *
* www.udbhavfoundation.org <http://www.udbhavfoundation.org/>*

      (9873876761)

Thanks and Regards
  Atul Kumar Singh

          *I Support *
* www.udbhavfoundation.org <http://www.udbhavfoundation.org>*

      (9873876761)


On Fri, Oct 16, 2020 at 1:03 PM Atul Singh <atullh at gmail.com> wrote:

> Hello systemd-devel,
>
> I am working to dockerize the buildroot based rootfs.
> While dockerization if I run the container with privilege mode am able to
> run the container and it works fine.
>
> But, when I try to run/restart other containers I get the below error
> message during docker run.
>
> Please advice how to resolve this issue.
>
>         "Id":
> "0d7dd883d5441719b623b64473d5ff08be27596b240eed97fe4d6f36d612afc2",
>         "Created": "2020-10-16T07:31:19.992526641Z",
>         "Path": "./HW",
>         "Args": [],
>         "State": {
>             "Status": "created",
>             "Running": false,
>             "Paused": false,
>             "Restarting": false,
>             "OOMKilled": false,
>             "Dead": false,
>             "Pid": 0,
>             "ExitCode": 128,
>
> *            "Error": "cgroups: cannot find cgroup mount destination:
> unknown",*            "StartedAt": "0001-01-01T00:00:00Z",
>             "FinishedAt": "0001-01-01T00:00:00Z"
>         },
>
> *My compose file mentioned below:*
>
>      image: test:atul
>      environment:
>        - STORAGE_HOST=/var/lib/docker/volumes/atul
>      cap_add:
>        - CAP_SYS_ADMIN
>        - SYS_ADMIN
>        - CAP_MKNOD
>      tmpfs:
>        - /run
>        - /tmp
>      volumes:
>        - /var/lib/docker/volumes/atul:/mnt
>        - /sys:/sys:ro
>      network_mode: "host"
>      privileged: true
>
>
>
> Thanks and Regards
>   Atul Kumar Singh
>
>           *I Support *
> * www.udbhavfoundation.org <http://www.udbhavfoundation.org>*
>
>       (9873876761)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20201016/2ed5c086/attachment-0001.htm>


More information about the systemd-devel mailing list