Docker Community Forums

Share and learn in the Docker community.

What is the correct method of building and installing Docker in master branch?

docker

(Nanxiao) #1

I originally post this issue on SO, but unfortunately, there is no any reponse there. So I repost it on the forum, thanks!

My host is Ubuntu 16.04.1 LTS, and the Docker shipped is v1.11.2:

# docker version
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 22:00:43 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 22:00:43 2016
 OS/Arch:      linux/amd64

I want to try the newest Docker in master branch, so download and build master code. But after that, I find it is totally different from current v1.11.2:

# pwd
/root/docker/bundles
root@ubuntu:~/docker/bundles# tree
.
├── 1.12.0-dev
│   ├── binary-client
│   │   ├── docker -> docker-1.12.0-dev
│   │   ├── docker-1.12.0-dev
│   │   ├── docker-1.12.0-dev.md5
│   │   └── docker-1.12.0-dev.sha256
│   └── binary-daemon
│       ├── docker-containerd
│       ├── docker-containerd-ctr
│       ├── docker-containerd-ctr.md5
│       ├── docker-containerd-ctr.sha256
│       ├── docker-containerd.md5
│       ├── docker-containerd.sha256
│       ├── docker-containerd-shim
│       ├── docker-containerd-shim.md5
│       ├── docker-containerd-shim.sha256
│       ├── dockerd -> dockerd-1.12.0-dev
│       ├── dockerd-1.12.0-dev
│       ├── dockerd-1.12.0-dev.md5
│       ├── dockerd-1.12.0-dev.sha256
│       ├── docker-proxy -> docker-proxy-1.12.0-dev
│       ├── docker-proxy-1.12.0-dev
│       ├── docker-proxy-1.12.0-dev.md5
│       ├── docker-proxy-1.12.0-dev.sha256
│       ├── docker-runc
│       ├── docker-runc.md5
│       └── docker-runc.sha256
└── latest -> 1.12.0-dev

The products is divided into daemon and client. I try to run “make install” command, but it reports many warnings:

# make install
KEEPBUNDLE=1 hack/make.sh install-binary
# WARNING! I don't seem to be running in a Docker container.
# The result of this command might be an incorrect build, and will not be
# officially supported.
#
# Try this instead: make all
#

---> Making bundle: install-binary (in bundles/1.12.0-dev/install-binary)
Installing docker to /usr/local/bin/
Installing dockerd to /usr/local/bin/
Installing docker-proxy to /usr/local/bin/

So what is the correct method of building and installing Docker in master branch? Thanks very much in advance!


(Dvohra) #2

Use docker push for Docker repository.
https://docs.docker.com/engine/tutorials/dockerrepos/