Re: Issue regarding running systemd under a container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

      (9873876761)

Thanks and Regards
  Atul Kumar Singh 

          I Support 

      (9873876761)


On Fri, Oct 16, 2020 at 1:03 PM Atul Singh <atullh@xxxxxxxxx> 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 

      (9873876761)
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux