Can't create container

Hi,

I encounter on such error during the container creation:

docker container run --rm -d --name ap1 -p 8080:80 httpd:latest
Unable to find image 'httpd:latest' locally
latest: Pulling from library/httpd
Digest: sha256:10bb8ae0ba2a7d55233bf2201e83389b9ee6877596f91968c259f1f35d3a753f
Status: Downloaded newer image for httpd:latest
38d3afab7cd9265f77a2f9708eb6e72c5de33145da8764e0c7a6a88160bb9a5e
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: chdir to cwd ("/usr/local/apache2") set in config.json failed: operation not supported: unknown.

Going with @rimelek advice I am not reading the first part :slight_smile: but taking look at the second part:

chdir to cwd ("/usr/local/apache2") set in config.json failed: operation not supported: unknown.

I am not able to look for anything useful in web.

That’s new. Can you tell us more about your environment? how did you install Docker on which operating system/distribution? Is it Docker Desktop or Docker CE?

Nice to see that someone reads other questions and answers as well :slight_smile: :+1:

I install Docker uisng Install Docker Engine on Fedora | Docker Documentation

I use Fedora 34.

I am a starter with the containers so my question is. if that issue can be correlated with the mage from zfs? It is Fedora 34, and maybe I should expect Use the ZFS storage driver | Docker Documentation to see ‘zfs’ as Storage (point 5):

Now I have:

docker info | grep Storage
 Storage Driver: fuse-overlayfs

I don’t know what the default storage driver is on Fedora, but it is usually overlay2, not fuse-overlayfs. The only time I saw “fuse-overlay” was when I tried rootless containers many months before.

Quote:

An implementation of overlay+shiftfs in FUSE for rootless containers.

Even if it is rootless containers, the HTTPD server should be able toi start.

Try this command to list the contexts to see if the active is rootless:

docker context ls

update:

Reading your other post, I see that it is not rootless container, since the data root is under /var/lib/docker/