`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.
More on Daemon, install and permissions
`Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`Beginner`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`Beginnerdockerd fails to start after editing `daemon.json`: `unable to configure the Docker daemon with file /etc/docker/daemon.json`Intermediate`docker: command not found` right after installing Docker Desktop on macOS.Beginner`docker info` shows `WARNING: bridge-nf-call-iptables is disabled`IntermediateDocker service flaps with `failed to start daemon: Error initializing network controller: ... iptables failed`Intermediate