# Use user specific tmp directory

**URL:** <https://forums.docker.com/t/use-user-specific-tmp-directory/10814>\
**Category:** Docker Desktop\
**Created:** [May 3, 2016, 7:35pm UTC](https://forums.docker.com/t/use-user-specific-tmp-directory/10814 "2016-05-03T19:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aequitas](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@aequitas](https://forums.docker.com/u/aequitas)\
**Post date:** [May 3, 2016, 7:35pm UTC](https://forums.docker.com/t/use-user-specific-tmp-directory/10814/1 "2016-05-03T19:35:22Z")

</div>

### Expected behavior

With multiple users be able to run a docker server for each user.

### Actual behavior

Docker server for second user cannot be created because of permission issues:  
: Failed to remove existing socket on /var/tmp/com.docker.osxfs.volume.socket: remove /var/tmp/com.docker.osxfs.volume.socket: permission denied

### Information

Docker uses a hardcoded path `/var/tmp/` for state and socket files. It would be preferred to use a user specific tmp path like $TMPDIR which results in a unique user specific temporary folder.

### Steps to reproduce the behavior

1. Start docker server for user1
2. logout user1/switch user2
3. Try to start docker server for user2

---

<div class="post-metadata">

**Author:** ![justincormack](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/justincormack/32/6760_2.png) [@justincormack](https://forums.docker.com/u/justincormack)\
**Post date:** [May 4, 2016, 8:55am UTC](https://forums.docker.com/t/use-user-specific-tmp-directory/10814/2 "2016-05-04T08:55:14Z")

</div>

The sockets are being moved, other than the main docker socket, which is expected by the client, we will either change the client behaviour or some other workaround here.
