Skip to content

[BUG] Misleading error message if user has no permission for docker socket #13649

Description

@jeffrson

Description

If the user has no permission to access docker socket:

> docker ps
permission denied while trying to connect to the docker API at unix:///var/run/docker.sock

docker compose up shows a very misleading error message:

> docker compose up -d
read <pwd>: is a directory

Steps To Reproduce

Linux

docker compose version
Docker Compose version v5.1.1

obviously simple to reproduce (no docker-compose.yml, even empty directory suffices)

Compose Version


Docker Environment


Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions