When trying to use Docker 18.06 with "experimental": true in /etc/docker/daemon.json, and attempting to build a super basic Dockerfile:
You will hit this:
root@17fd98e809da:/blah# docker build .
ERRO[0000] failed to dial gRPC: unable to upgrade to h2c, received 501
Sending build context to Docker daemon 2.048kB
context canceled
root@17fd98e809da:/blah# cat Dockerfile
FROM alpine:3.8
RUN apk add --no-cache bash
CMD [ "ls", "-la" ]
root@17fd98e809da:/blah#
Sockguard logs:
sockguard_1 | #2 09:23:55.130152 POST - /session - 0b
sockguard_1 | #2 09:23:55.130525 Handler returned error "POST /session not implemented yet"
sockguard_1 | #3 09:23:55.130841 POST - /v1.38/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=r0fwk1oznxrhbc3pl0c7le7g0&shmsize=0&target=&ulimits=null&version=1 - -1b
sockguard_1 | #3 09:23:55.130993 Adding label com.buildkite.sockguard.owner=sockguard-pid-1 to querystring: /v1.38/build buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&session=r0fwk1oznxrhbc3pl0c7le7g0&shmsize=0&target=&ulimits=null&version=1
sockguard_1 | #3 09:23:55.132059 Error copying request to target: unexpected EOF
I'm pretty sure this is partially related to the BuildKit additions. Note: this test didn't have DOCKER_BUILDKIT=1 set, but if you enable that you get other related timeouts.
root@17fd98e809da:/blah# DOCKER_BUILDKIT=1 docker build .
[+] Building 5.0s (2/2) FINISHED
=> ERROR local://dockerfile (Dockerfile) 5.0s
=> ERROR local://context (.dockerignore) 5.0s
------
> local://dockerfile (Dockerfile):
------
------
> local://context (.dockerignore):
------
failed to dial gRPC: unable to upgrade to h2c, received 501
When trying to use Docker 18.06 with
"experimental": true
in/etc/docker/daemon.json
, and attempting to build a super basicDockerfile
:You will hit this:
Sockguard logs:
I'm pretty sure this is partially related to the BuildKit additions. Note: this test didn't have
DOCKER_BUILDKIT=1
set, but if you enable that you get other related timeouts.And the debug logs:
Will likely need to implement this before Docker CE 18.09:
/session
support/v1.38/build
API calls failing with EOF to upstream/build/cancel
supportSockguard debug logs (without
DOCKER_BUILDKIT=1
)