infobloxopen / atlas-cli

Apache License 2.0
14 stars 45 forks source link

Added docker permissions check before running protoc #98

Closed nikonok closed 3 years ago

nikonok commented 3 years ago

When you trying to run atlas-cli on a clean machine without setting up docker correctly, you see just log Generating protobuf ... exit status 2. That's not good, because it's a very common issue, so I propose to check docker info before any actions.

Evgeniy-L commented 3 years ago

Can you please share example output after your changes when docker is not correctly setup?

Evgeniy-L commented 3 years ago

ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'.