SOCKS5 or HTTP proxy support for Docker xhyve beta

Expected behavior

Docker beta (xhyve) private invitation code can be used to register the software if company firewall blocks TCP/80 and TCP/443 and user has SOCKS5 or HTTP proxy defined in System Preferences > Network > {Interface} > Proxies.

Actual behavior

Registration fails with: Authentication error Put dial tcp: i/o timeout


foobar:~ x$ pinata diagnose -u
OS X: version 10.11.4 (build: 15E65) version v1.11.1-beta10
Running diagnostic tests:
[OK] docker-cli
[OK] Moby booted
[OK] driver.amd64-linux
[OK] vmnetd
[OK] osxfs
[OK] db
[OK] slirp
[OK] menubar
[OK] environment
[OK] Docker
[OK] VT-x

OSX 10.11.4
Darwin foobar.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64

Steps to reproduce the behavior

  1. Install Docker xhyve beta w/ firewall and proxy configured as specified in issue.
  2. Attempt to use private beta token