buvanesh buvhi
buvanesh buvhi

Reputation: 61

Docker sudo permissions

I am able to run docker without sudo but after sometimes it again asks for permissions and I am not able to Attach container in VS code

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json: dial unix /var/run/docker.sock: connect: permission denied

Upvotes: 3

Views: 284

Answers (1)

Ravi kumar
Ravi kumar

Reputation: 21

To sort out permission errors and to run containers, check the following command

sudo chmod 666 /var/run/docker.sock

Upvotes: 2

Related Questions