Reputation: 575
I am getting following error while starting docker container.
Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:326: applying cgroup configuration for process caused: no cgroup mount found in mountinfo: unknown
Error: failed to start containers: postgres-11
My docker version is ----> Docker version 19.03.13-ce, build 4484c46
OS-->
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Thank you in advance.
Upvotes: 6
Views: 13089
Reputation: 345
I had the same error, "OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:340: applying cgroup configuration for process caused: no cgroup mount found in mountinfo: unknown
"
First, check if "docker run hello-world
" is working properly. This will validate the docker installation.
I found this script very useful. Owner: https://mobyproject.org/
Try & Hit solutions:
sudo apt-get install cgroup-lite cgroup-utils
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
sudo apt-get purge docker-ce docker-ce-cli containerd.io || sudo rm -rf /var/lib/docker || sudo rm -rf /var/lib/containerd
sudo dpkg -i /path/to/package.deb
In the end, recheck docker run hello-world
.
Upvotes: 3