Interview Prep/Docker/Daemon, install and permissions

`docker compose up` fails: `unknown shorthand flag: 'd' in -d` or `docker: 'compose' is not a docker command.`

BeginnerTroubleshootingDaemon, install and permissions
Answer

Likely causes → Compose plugin missing from this installation (e.g., distro docker.io package).

Diagnose → docker --help | grep compose; dpkg -l | grep compose.

Fix → Install docker-compose-plugin from Docker's repo, or the docker-compose-v2 package on Ubuntu.

Prevent → Install from the official Docker apt/yum repo.

All Docker questions Roadmap: Docker & containers

More on Daemon, install and permissions