CallMeTechie
DE Login
Home Products Blog About Contact

docker_cmd Detection

v1.0 · Updated 5 days ago

How Fleet Manager Invokes Docker: docker_cmd

Docker is reachable differently on every server — sometimes directly, sometimes only via sudo, sometimes at a special path. During /diag, Fleet Manager therefore tries several variants and remembers the first one that works as docker_cmd in the profile:

  1. docker info
  2. sudo -n docker info
  3. sudo -n /usr/local/bin/docker info
  4. /usr/local/bin/docker info

If no variant answers, Docker is considered unavailable (docker_available: no).

Allowlist validation

Before every use, the stored docker_cmd is checked against a strict pattern:

^(sudo -n )?(/path/to/)?docker$

Anything else is rejected rather than executed — a safeguard against command injection should a profile be tampered with.

Cookie Settings

We use cookies to improve your experience. Essential cookies are always active.

Privacy Policy
ESC
↑↓ navigate open esc close