haxorof/ansible-role-docker-ce

Docker run throws error on Fedora 31

haxorof opened this issue · 1 comments

When using Vagrant box "generic/fedora31" Docker will install correctly but when running "hello-world" it throws and error saying:

TASK [Run hello-world] *********************************************************
Saturday 14 March 2020  13:58:39 +0000 (0:00:00.061)       0:01:43.030 ******** 
fatal: [test-host]: FAILED! => {
    "changed": false,
    "cmd": "docker run --rm hello-world",
    "delta": "0:00:03.862598",
    "end": "2020-03-14 13:58:44.449873",
    "msg": "non-zero return code",
    "rc": 125,
    "start": "2020-03-14 13:58:40.587275",
    "stderr": "Unable to find image 'hello-world:latest' locally\nlatest: Pulling from library/hello-world\n1b930d010525: Pulling fs layer\n1b930d010525: Verifying Checksum\n1b930d010525: Download complete\n1b930d010525: Pull complete\nDigest: sha256:f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e\nStatus: Downloaded newer image for hello-world:latest\ndocker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.",
    "stderr_lines": [
        "Unable to find image 'hello-world:latest' locally",
        "latest: Pulling from library/hello-world",
        "1b930d010525: Pulling fs layer",
        "1b930d010525: Verifying Checksum",
        "1b930d010525: Download complete",
        "1b930d010525: Pull complete",
        "Digest: sha256:f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e",
        "Status: Downloaded newer image for hello-world:latest",
        "docker: Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown."
    ],
    "stdout": "",
    "stdout_lines": []
}

To fix this changes to GRUB is necessary and the following parameter is required:

systemd.unified_cgroup_hierarchy=0