check:docker
Introduction
check:docker checks that Docker and Docker Compose are installed and that the daemon answers. Run it first when product:up or product:clean fails on Docker.
splent check:docker
🐳 Docker Check
[✔] Docker installed — Docker version 26.1.4, build 5650f9b
[✔] Docker Compose available — Docker Compose version v2.27.1
[✔] Docker daemon is running
[✔] Docker socket accessible — 3 container(s) running
✅ Docker environment OK.
It exits 1 when any check fails. splent doctor runs it in its Environment section.
Fixing a failed check
| Line | What to do |
|---|---|
Docker not found |
Install Docker Desktop or Docker Engine |
Docker Compose not found |
Install the Compose plugin, so docker compose works |
Legacy docker-compose found |
A warning. Only the standalone docker-compose binary is there, so install Compose V2 |
Docker daemon not responding |
Start Docker Desktop or the Docker service |
Cannot access Docker socket |
Add your user to the docker group, or start Docker Desktop |
Reference
| Check | Command it runs |
|---|---|
| Docker | docker --version |
| Compose | docker compose version, else docker-compose --version |
| Daemon | docker info |
| Socket | docker ps, and counts the running containers |
Each command gives up after 10 seconds.