How to build docker code

Hi,

I want to compile docker daemon ‘dockerd’ and client ;docker’ from docker’s source code.
I could not find any step by step procedure to do so.

Please refer me the steps for compiling docker daemon and client.

Thanks ANukrati

What are you actually trying to do?

GitHub - moby/moby: The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems has the source tree; I believe it’s an ordinary Go project. But if you’re just trying to get Docker installed, following the instructions on docs.docker.com will be easier and more reproducible.

I picked code from there and build the code. So I am getting docker daemon ‘dockerd’. But the build process is not creating docker client.

I have to modify the existing docker code for both client and daemon for my project.

Referring to link https://github.com/moby/moby/blob/master/project/PACKAGERS.md,
it says to build client use “./hack/make.sh binary-client”.
But this command giving error as no binary-client file present.