Missing package github.com/docker/docker/autogen/dockerversion

Trying to compile Docker in Windows according to the instructions here:

How to compile Docker on Windows

  • Docker Volumes - bind mount different filesystem to ../docker/volumes/
  • Rancher can't find link when net=host
  • crontab not executing on centos7 container
  • Separate specific configuration in Dockerfile
  • Docker - traffic mirroring
  • Running YARN cluster in Kubernetes/Mesos
  • and getting this error message:

    cannot find package "github.com/docker/docker/autogen/dockerversion" in any of:

    Tried browsing to https://github.com/docker/docker/autogen/dockerversion but getting a 404; can anyone tell me how to get this using GIT client?

  • Varnish + Nginx proxy configuration on plesk
  • Pre Configured Environment variables in Jenkins
  • Ensure node is running at least a certain kernel version?
  • Vagrant docker-exec
  • How to set up executor IPs inside Docker containers?
  • How to install packages to docker's python?
  • One Solution collect form web for “Missing package github.com/docker/docker/autogen/dockerversion”

    I had the same issue, the author has updated the post as you have seen to include the use of GitBash. You will need to update your source to get the new ‘hack’ directory content used in the instructions he outlines as per below:

    git clone --depth 1 https://github.com/docker/docker.git  /c/gopath/src/github.com/docker/docker
    cd /c/gopath/src/github.com/docker/docker
    export GOPATH=/c/gopath:/c/gopath/src/github.com/docker/docker/vendor
    export DOCKER_CLIENTONLY=1
    chmod +x hack/make/.go-autogen && hack/make/.go-autogen
    cd docker
    go build
    

    Do you have GitBash installed? All of the instructions he provides need to be run in a GitBash window not the Windows Command window now.

    I have built it successfully, so if you need any more help I may be of use.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.