# Docker WSL permission issues

**URL:** <https://forums.docker.com/t/docker-wsl-permission-issues/80319>\
**Category:** Docker Hub\
**Created:** [August 27, 2019, 1:01pm UTC](https://forums.docker.com/t/docker-wsl-permission-issues/80319 "2019-08-27T13:01:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobyreed](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tobyreed](https://forums.docker.com/u/tobyreed)\
**Post date:** [August 27, 2019, 1:01pm UTC](https://forums.docker.com/t/docker-wsl-permission-issues/80319/1 "2019-08-27T13:01:54Z")

</div>

Hello,

I am having issues with docker in terms of permissions. I am currently running `Docker version 19.03.1, build 74b1e89.`

Everything has been working fine for a couple of months, and then I restart my computer and then docker stops working(`"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"`) after some digging around I find out the user groups on WSL(Windows subsystem for linux). The solution I used to previously get it working again was to remove the group “docker” then add it again, and add my user to the group, worked fine for a couple of weeks.

I then have restarted my system since and it has caused the same issue with permissions however using the same solution has not worked and I have also tried multiple other solutions to no avail. I have already spent a good 4 hours trying to figure out what the issue is and a solution and this is getting ridiculous as I don’t want to spend a day every time I restart my system as this is just a waste of time…

Is anybody able to help me or guide me because I have searched everywhere for a solution.

---

<div class="post-metadata">

**Author:** ![tekki](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/tekki/32/21884_2.png) [@tekki](https://forums.docker.com/u/tekki)\
**Post date:** [August 28, 2019, 6:15am UTC](https://forums.docker.com/t/docker-wsl-permission-issues/80319/2 "2019-08-28T06:15:12Z")

</div>

On some system I have this line in `~/.bashrc`:

```auto
export DOCKER_HOST=tcp://localhost:2375

```

This solution may be outdated with version 19 where we have [docker context](https://docs.docker.com/engine/reference/commandline/context/).

---

<div class="post-metadata">

**Author:** ![tobyreed](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@tobyreed](https://forums.docker.com/u/tobyreed)\
**Post date:** [August 28, 2019, 8:06am UTC](https://forums.docker.com/t/docker-wsl-permission-issues/80319/3 "2019-08-28T08:06:20Z")

</div>

Thank you for your solution. However, the solution that seemed to work for me was to do with user groups in WSL and it was to use this command: `sudo newgrp docker`

Hope this will help someone!
