Open iwaseyusuke opened 1 year ago
That solution is not perfect, but it allow us to reboot the machine
tdnf install -y dbus-user-session
sed -i '/set -e -x/a systemctl --user start dbus' /bin/dockerd-rootless.sh
sed -i '/systemctl --user start dbus/a ### HotFix ###' /bin/dockerd-rootless.sh
Describe the bug
After I followed the instructions in the docs (https://vmware.github.io/photon/docs-v5/administration-guide/containers/docker-rootless-support/), I got the following error to run a container.
Reproduction steps
docker run
commandExpected behavior
A container should be successfully running.
Additional context
According to the following FAQ in the containerd repo, https://github.com/containerd/nerdctl/blob/main/docs/faq.md#error-failed-to-create-shim-task-oci-runtime-create-failed-runc-create-failed-unable-to-start-container-process-unable-to-apply-cgroup-configuration-unable-to-start-unit--nameslice-valueuserslice-namedelegate-valuetrue--permission-denied-unknown
we also need to run the following command before running some containers.
This is not described by
dockerd-rootless-setuptool.sh check
command though...