# Unable to start development container under moby/moby

**URL:** <https://forums.mobyproject.org/t/unable-to-start-development-container-under-moby-moby/413>\
**Category:** Support\
**Created:** [April 27, 2019, 2:31pm UTC](https://forums.mobyproject.org/t/unable-to-start-development-container-under-moby-moby/413 "2019-04-27T14:31:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick24](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@nick24](https://forums.mobyproject.org/u/nick24)\
**Post date:** [April 27, 2019, 2:31pm UTC](https://forums.mobyproject.org/t/unable-to-start-development-container-under-moby-moby/413/1 "2019-04-27T14:31:58Z")

</div>

Hi,

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
Makefile:152: The docker client CLI has moved to github.com/docker/cli. For a dev-test cycle involving the CLI, run:
 DOCKER_CLI_PATH=/host/path/to/cli/binary make shell 
 then change the cli and compile into a binary at the same location.
DOCKER_BUILDKIT="1" docker build --build-arg=CROSS=false --target=dev -t "docker-dev:firstbranch" -f "Dockerfile" .
buildkit not supported by daemon
Makefile:152: recipe for target 'build' failed
make: *** [build] Error 1

```

As mentioned in step 9, I went ahead to point the DOCKER\_CLI\_PATH variable to the correct docker cli binary. I built the Linux binary for the docker cli separately from docker/cli git repo. the command used to build the binary along with the output is as below.

```auto
$ make -f docker.Makefile binary
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
cat ./dockerfiles/Dockerfile.binary-native | docker build -t docker-cli-native -
Sending build context to Docker daemon 2.048kB
Step 1/5 : FROM golang:1.12.4-alpine
---> b97a72b8e97d
Step 2/5 : RUN apk add -U git bash coreutils gcc musl-dev
---> Using cache
---> 71e95c880af9
Step 3/5 : ENV CGO_ENABLED=0 DISABLE_WARN_OUTSIDE_CONTAINER=1
---> Using cache
---> b3f3530e3fae
Step 4/5 : WORKDIR /go/src/github.com/docker/cli
---> Using cache
---> 01914ae74a3a
Step 5/5 : CMD ./scripts/build/binary
---> Using cache
---> 00ba9f3c5368
Successfully built 00ba9f3c5368
Successfully tagged docker-cli-native:latest
docker run --rm -e VERSION=19.03.0-dev -e GITCOMMIT -e PLATFORM -e TESTFLAGS -e TESTDIRS -v "/home/niket/thesis/cli":/go/src/github.com/docker/cli -v "docker-cli-dev-cache:/root/.cache/go-build" docker-cli-native
Building statically linked build/docker-linux-amd64

```

I found the newly created binary under /docker/cli/build/ named as docker-linux-amd64 as also clear from the logs above.

I followed step 9 in the 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 changed the path of the DOCKER\_CLI\_PATH

```auto
make DOCKER_CLI_PATH=/home/niket/thesis/cli/build/docker-linux-amd64 BIND_DIR=. shell
Makefile:152: The docker client CLI has moved to github.com/docker/cli. For a dev-test cycle involving the CLI, run:
 DOCKER_CLI_PATH=/host/path/to/cli/binary make shell 
 then change the cli and compile into a binary at the same location.
DOCKER_BUILDKIT="1" docker build --build-arg=CROSS=false --target=dev -t "docker-dev:firstbranch" -f "Dockerfile" .
buildkit not supported by daemon
Makefile:152: recipe for target 'build' failed
make: *** [build] Error 1

```

Can anyone help me in figuring out this problem and proceed further?

---

<div class="post-metadata">

**Author:** ![cpuguy83](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.mobyproject.org/cpuguy83/32/22_2.png) [@cpuguy83](https://forums.mobyproject.org/u/cpuguy83)\
**Post date:** [April 27, 2019, 2:39pm UTC](https://forums.mobyproject.org/t/unable-to-start-development-container-under-moby-moby/413/2 "2019-04-27T14:39:53Z")

</div>

Seems like you are using a version of docker that does not have buildkit enabled.

You’ll need to specify DOCKER\_BUILDKIT=0 along with your make call.

Brian Goff
