Docker compose executes the YML file error [How to Solve]

ERROR: Couldn’t connect to Docker daemon at http+ docker://localhost – is it running?

$sudo docker compose up. To start with sudo, enter the password

Other explanations (used, no)

Answer: the main reason is that docker is not started in the system service mode.

Solution:

  1. Start docker servic
  2. Generate self-starting services
  3. Check the service status, Active status is: active (running)

Similar Posts: