Skip to content

Instantly share code, notes, and snippets.

@ghusta
Created June 26, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghusta/a9c9d6cf6e934ea76af4f8751ebb19df to your computer and use it in GitHub Desktop.
Save ghusta/a9c9d6cf6e934ea76af4f8751ebb19df to your computer and use it in GitHub Desktop.
Build Docker CLI for Windows (docker.exe)
git clone https://github.com/docker/docker-ce.git
# List all tags (exclude the rc)
git tag --list 'v*-ce'
# Checkout desired version (tag)
git checkout 18.05.0-ce
# Build docker.exe CLI for Windows
cd components/cli
make -f docker.Makefile binary-windows
# find . -name docker-windows-amd64
cp build/docker-windows-amd64 docker.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment