When installing OpenPanel, you may encounter the following error:
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
INSTALLATION FAILED
Error: ERROR: Unable to run the Alpine Docker image! This suggests an issue with connecting to Docker Hub or with the Docker installation itself. To troubleshoot, try running the following command manually: 'docker run --rm alpine'.
and journalctl -xeu docker.service
shows:
docker: error during connect: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": read unix @->/run/docker.sock: read: connection reset by peer
This error usually indicates one of the following issues:
A. Insufficient disk space
- Check:
df -h
- Solution: Free up some disk space or increase the partition size.
B. Insufficient RAM
- Check:
free -mh
- Solution: Stop and disable unused services, or upgrade the system memory.
C. nftables
is used instead of iptables
- Check:
journalctl -xeu docker.service
- Solution: Switch from
nftables
to iptables
manually, as Docker does not yet fully support nftables
(#1472), or use an older version of your Linux distribution.