Closed Nick2253 closed 2 years ago
Had a similar problem on Fedora 34.
@Nick2253 have you tried using the following kernel argument: systemd.unified_cgroup_hierarchy=0
? For me, adding it to my kernel arguments solved the issue.
You can set it using
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
@Nick2253 Were you ever able to figure out what STIG was impacting docker run? I am experiencing the same problem... Thanks
Had a similar problem on RHEL 8.5, and more weird. Cause it successes a few time to print "Hello World!", but the lot of times, it failed, and get the same error as above. @Nick2253 Have you solved this problem? Here is more detail about my problem
@subcan Yes, sorry that I had not reported back earlier.
It was a combination of SELinux and fapolicyd. I'm familiar with SELinux, and knew enough before to setenforce 0
, but fapolicyd is a STIG requirement, and prior to using a STIG'd version of RHEL 8, I had never even heard of fapolicyd.
fapolicyd is actually pretty easy to configure, but for our use case and risk factors, it was just easier to note an exception to fapolicyd than to configure it correctly.
@Nick2253 Thanks!
I thought it's fapolicyd
caused this error.
After sudo systemctl stop fapolicyd
, I can run hello-world image normally.
But it's still confuse me, why a few time when fapolicyd
was started, I can executed docker run hello-world
successfully.
Expected behavior
When I start a docker container with
docker run <container>
, I expect the container to start.Actual behavior
However, the container does not start. I'm greeted with some variation on the error:
I've tested this with centos:7, hello-world, and mediawiki containers.
Using the docker daemon in debug mode, I see the following errors:
Steps to reproduce the behavior
Install Docker on RHEL 8. Start docker. Try to start a container. Observe that it presents an error and does not start.
Importantly, this system is configured in compliance with the NIST and STIG OpenSCAP policies. I'm guessing that something in these configurations is causing a problem for Docker, but I'm unable to find any better logging/debugging in order to try to troubleshoot this issue. I'm also not extremely experienced with docker, so I know that doesn't help.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
RHEL 8.3, running as a virtual machine inside of Hyper-V.