( * I don’t know why the image fails to upload ,so , just paste it down here)
PS C:\WINDOWS\system32> docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
719385e32844: Pull complete
Digest: sha256:a13ec89cdf897b3e551bd9f89d499db6ff3a7f44c5b9eb8bca40da20eb4ea1fa
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create
failed: runc create failed: invalid rootfs: stat /var/run/desktop-containerd/daemon/io.containerd.runtime.v2.task/moby/b
cbf83dd37c8960fad531fddd02ce85a959430eb999b32580b8ecdb250a57f55/E:\apps\dockerdata/vfs/dir/59ee320adcd0a4a0da9c447b00c0e
524be4ae42be5e5c1e41aa783534453c3ca: no such file or directory: unknown.
(I am a complete beginner and unfamiliar with many concepts and terms, so I am having trouble understanding what this error means and how to handle it.)
I edited your post to add code block. Please, format your posts according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.
Regarding the error message: it means Docker couldn’t create the container’s root filesystem properly. How exactly did you install Docker and on what filesystem? I cans ee “vfs” in the error message which shouldn’t be their. Did you try to move Docker Desktop’s virtual machine to a different folder possibly on a mounted network filesystem? But even then I don’t know why it would affect Docker inside the virtual machine to change the original storage driver.
Please share the output of the following command:
docker info
You can remove ip addresses from the output if you want to.
How did you configure the Docker Root Dir? You must have configured it yourself, as the default path should be /var/lib/docker. Docker for Linux containers requires a linux filesystem. In this case it’s the filesystem of the wsl2 distribution.
Please make sure to allways revert custom settings in case something is not working. This helps to pinpoint whether you custom settings introduced the problems.
I thought I have sent this message hours ago, but forgot to click on Reply…
Now I understand that strange output. Just don’t change the docker data root the way you could do with Docker CE. You need to change where Docker Desktop saves the virtual machine itself. Please, try to search for “Windows disk image location” on the forum. I never did that and I remember that not everyone managed to change it, but the documentation mentions it too:
I don’t know what happens when you change the data root in Docker Desktop even if you use a path valid inside WSL. There are some configurations that you can change, but don’t change anything filesystem related. The filesystem is complicated in Docker Desktop due to the multiple layers of isolation, so some references may not work even if you think that’s valid. Or if the reference work, that could be a network filesystem from the Docker’s point of view.