check:docker
Verify Docker and Docker Compose are available and the daemon is running.
Usage
splent check:docker
Example output
🐳 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.
Description
Runs four checks in sequence:
- Docker binary — verifies
dockeris onPATHand reports the version. - Docker Compose — checks for Compose V2 (
docker compose version). Falls back to legacydocker-composewith a warning if only that is found. - Daemon — runs
docker infoto confirm the Docker daemon is responding. - Socket access — runs
docker psto verify the current user has permission to talk to the Docker socket, and reports how many containers are currently running.
Any failed check exits with code 1. Use this before product:up or product:clean when diagnosing Docker issues.
If the daemon check passes but the socket check fails, you likely need to add your user to the docker group or start Docker Desktop.