# Make BIND\_DIR=. shell error

**URL:** <https://forums.mobyproject.org/t/make-bind-dir-shell-error/626>\
**Category:** Support\
**Created:** [August 14, 2020, 7:37am UTC](https://forums.mobyproject.org/t/make-bind-dir-shell-error/626 "2020-08-14T07:37:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrSsunlight](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/mrssunlight/32/218_2.png) [@MrSsunlight](https://forums.mobyproject.org/u/MrSsunlight)\
**Post date:** [August 14, 2020, 7:37am UTC](https://forums.mobyproject.org/t/make-bind-dir-shell-error/626/1 "2020-08-14T07:37:26Z")

</div>

I’m following this guide [https://github.com/moby/moby/blob/master/docs/contributing/set-up-dev-env.md](https://github.com/moby/moby/blob/master/docs/contributing/set-up-dev-env.md) and trying to setup a moby dev environment. In step 4 of the above URL, I execute the command

```auto
make BIND_DIR=. shell

```

and get the below error.

```auto
docker build --build-arg=GO_VERSION -f "Dockerfile" --target=dev -t "docker-dev:dry-run-test" .
unknown flag: --target
See 'docker build --help'.
make: *** [build] 错误 125

```

---

<div class="post-metadata">

**Author:** ![thaJeztah](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/thajeztah/32/2_2.png) [@thaJeztah](https://forums.mobyproject.org/u/thaJeztah)\
**Post date:** [August 14, 2020, 1:10pm UTC](https://forums.mobyproject.org/t/make-bind-dir-shell-error/626/2 "2020-08-14T13:10:41Z")

</div>

What version of docker do you have installed currently? (you can find the version with the `docker version` command)

That error may mean that you have a very old version of docker installed that not yet has support for multi-stage builds

---

<div class="post-metadata">

**Author:** ![MrSsunlight](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/mrssunlight/32/218_2.png) [@MrSsunlight](https://forums.mobyproject.org/u/MrSsunlight)\
**Post date:** [August 26, 2020, 2:39am UTC](https://forums.mobyproject.org/t/make-bind-dir-shell-error/626/3 "2020-08-26T02:39:09Z")

</div>

docker version is 1.13.1, is it because of version problems?

---

<div class="post-metadata">

**Author:** ![moby-admins](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/moby-admins/32/9_2.png) [@moby-admins](https://forums.mobyproject.org/u/moby-admins)\
**Post date:** [August 26, 2020, 1:43pm UTC](https://forums.mobyproject.org/t/make-bind-dir-shell-error/626/4 "2020-08-26T13:43:39Z")

</div>

Yes, that would explain; docker 1.13.x reached EOL almost 4 years ago, and doesn’t have support for multi-stage builds.

I would highly encourage to install a currently maintained version (current version is docker 19.03.x at time of writing) ([https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)). Older releases are not maintained, and can have unpatched vulnerabilities (in some cases, critical)

---

<div class="post-metadata">

**Author:** ![MrSsunlight](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/mrssunlight/32/218_2.png) [@MrSsunlight](https://forums.mobyproject.org/u/MrSsunlight)\
**Post date:** [August 27, 2020, 6:35am UTC](https://forums.mobyproject.org/t/make-bind-dir-shell-error/626/5 "2020-08-27T06:35:15Z")

</div>

Thanks I can use it after upgrading docker
