Docker Community Forums

Share and learn in the Docker community.

Unable to start any containers

Hi,

I am facing an issue while starting any container, getting error as below.

docker: Error response from daemon: open /app/docker/overlay2/conatinerid-init/merged/etc/hosts : operation not permitted
docker: Error response from daemon: open /app/docker/overlay2/conatinerid-init/merged/.dockerenv : operation not permitted
docker: Error response from daemon: open /app/docker/overlay2/conatinerid-init/merged/etc/resolve.conf : operation not permitted

/app/docker is the custom root directory of docker
Docker version : 20.10.2
Storage Driver : overlay2
Backing Filesystem: xfs
Server OS : RHEL 7.9 (Maipo)
Selinux=disabled

May I ask where the packages to install docker came from?

[quote=“Install Docker Engine on RHEL | Docker Documentation”]
We currently only provide packages for RHEL on s390x (IBM Z). Other architectures are not yet supported for RHEL, but you may be able to install the CentOS packages on RHEL. Refer to the Install Docker Engine on CentOS page for details.
[/quote].

So it is safe to assume that you either a) run on s390x architecture which is supported, b) run the CentOS packages on RHEL (which is not supported, but may work) or c) installed a package provided by RHEL directly (and supported by RHEL directly).

If it’s a) I would suggest to open an incident on docker’s github project. If it’s c) I would suggest to open a support ticket at RedHat. If it’s b) hopefully someone shares your situation and is going to respond.