Docker container starts abnormally

scene reproduction

It is newly installed under Alibaba Cloud ECS CoreOS 1465.8.0 64-bit, and no other operations have been performed. The following command is executed directly and an exception occurs:

docker pull hello-world
docker run -it hello-world

Return the error message directly:

/run/torcx/bin/docker: Error response from daemon: Error relabeling upper directory: SELinux relabeling of /var/lib/docker/overlay/051ee419ddcd3c3c030c3f50a1f192f0ecb04d0e4550039c269bf06e7e9b1810/upper is not allowed: "operation not supported".
-- docker-ce 下返回 如下错误信息
/run/torcx/bin/docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/b76f7a3156ac65c497232d5f863e95ed0bbd75b6fb4258410a774c37056b0d4d/merged: invalid argument.

Very, very common command, how can it go wrong?

Solution

  • The method of modifying the kernel parameters under CoreOS does not seem to work, or is it that I made a mistake and the kernel parameter location is wrong?
  • Keep trying...

Reference documentation

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324642059&siteId=291194637