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:

  1. Docker binary — verifies docker is on PATH and reports the version.
  2. Docker Compose — checks for Compose V2 (docker compose version). Falls back to legacy docker-compose with a warning if only that is found.
  3. Daemon — runs docker info to confirm the Docker daemon is responding.
  4. Socket access — runs docker ps to 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.


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es