summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Wood <in@davidtw.co>2018-11-14 05:31:55 +0000
committerdoug tangren <d.tangren@gmail.com>2018-11-14 14:31:55 +0900
commit29bd95b42cd2b3c364f0be1f3e07e4b654e0ccf3 (patch)
treebff64b2161175b80af7c4d8fd496123eb7ccf3d8 /examples
parent75123f82a6f350299f1e9fc74d73dd4406a01cdc (diff)
Disable Hyper's http protocol enforcement. (#129)
There are some situations where the Docker daemon will expose a HTTP server and will expect connections through a TCP connection rather than via a unix socket. For example, this is the case with Docker for Windows when used through the Windows Subsystem for Linux. In these cases, `DOCKER_HOST` will be of the form `tcp://127.0.0.1:2375`. Docker will not work if `DOCKER_HOST` has the `http` protocol. This commit manually builds a `HttpConnector` from Hyper so that it does not fail if the protocol is not `http`. Therefore, the `DOCKER_HOST` that works with Docker will also work with shiplift.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions