# Azure IoT Edge - docker.sock connect: permission denied

https://jaredrhodes.com/blog/azure-iot-edge-docker-sock-connect-permission-denied/

The [Azure IoT Edge](https://azure.microsoft.com/en-us/services/iot-edge/) getting started guide currently utilizes [VS Code](https://code.visualstudio.com/) and [Docker](https://www.docker.com/) to create modules. If you receive "docker.sock connect: permission denied" after trying to build, run the following two commands in the terminal:

```
sudo usermod -aG docker $USER
```

```
newgrp docker
```

If you still have the error, **restart** your machine and try again.
