# Docker\_dev image broken for users other than UID 1000

**URL:** <https://meta.discourse.org/t/docker-dev-image-broken-for-users-other-than-uid-1000/71694>\
**Category:** Development\
**Created:** [October 9, 2017, 5:18pm UTC](https://meta.discourse.org/t/docker-dev-image-broken-for-users-other-than-uid-1000/71694 "2017-10-09T17:18:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [October 9, 2017, 10:36pm UTC](https://meta.discourse.org/t/docker-dev-image-broken-for-users-other-than-uid-1000/71694/4 "2017-10-09T22:36:32Z")

</div>

I lost more hours on this than I care to admit. It worked fine on my machine, but wouldn’t work where I was trying to make it work (trying to set up an environment where a client could painlessly re-run an import). docker\_dev seems like a great way for a Normal Person to be able to run an importer.

> [@sam](#):
>
> the docker dev environment expects the user to be the first user that was created on the machine

Darn. It’s not quite the “first user” as I just added a user on a Digital Ocean droplet (their image has no normal user); I added a user, added that user to the docker group and tried to run `boot_dev` as that user and got the same permission error.

> [@sam](#):
>
> We can improve this possibly with the uid mapping stuff docker has now, but it is tricky

I was hoping that this would a good-enough test and error message to add to `boot_dev`, but it isn’t. Is there some simple test?

```plaintext

if ["$UID" != 1000]
then
    echo "discourse_dev expects to be run by first user (UID 1000)."
    exit 1
fi

```

This is getting far afield from the OP, I was hoping too that docker\_dev might be a solution to my “what if I need to run a couple imports and do development on something else all at the same time” problem, but it’s not quite that yet.

---

_[View the full topic](https://meta.discourse.org/t/docker-dev-image-broken-for-users-other-than-uid-1000/71694)._
