We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally reported by @RomanSaveljev in moby/moby#33706
Description
Docker build fails. A command like this will fail:
docker build -t xxx -f - --compress . <Dockerfile
Steps to reproduce the issue:
Dockerfile
FROM alpine
.
docker build --verbose -t xxx -f - --compress . <Dockerfile
Describe the results you received:
$ docker build -t xxx -f - --compress . <Dockerfile Sending build context to Docker daemon error during connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=.dockerfile.894e5d7100166c80399a&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=xxx&target=&ulimits=null: unexpected EOF
Describe the results you expected:
Successful build
Additional information you deem important (e.g. issue happens only occasionally):
Happens every time
Output of docker version:
docker version
Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 22:10:54 2017 OS/Arch: linux/amd64 Server: Version: 17.05.0-ce API version: 1.29 (minimum version 1.12) Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 22:10:54 2017 OS/Arch: linux/amd64 Experimental: false
Output of docker info:
docker info
Containers: 1018 Running: 0 Paused: 0 Stopped: 1018 Images: 8576 Server Version: 17.05.0-ce Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 5187 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 9048e5e50717ea4497b757314bad98ea3763c145 runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228 init version: 949e6fa Security Options: apparmor seccomp Profile: default Kernel Version: 4.4.0-64-generic Operating System: Ubuntu 16.04.2 LTS OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 990.6MiB Name: systest-tools-releases-bot ID: MJ4N:O2KV:ZZXR:FHNU:TY6U:D57G:OKMV:KB2O:QLU4:DGYZ:MVLF:T336 Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
Docker engine runs in AWS node
The text was updated successfully, but these errors were encountered:
I was able to reproduce this on 17.06.0-rc4;
$ mkdir repro-33706 && cd repro-33706 $ echo "FROM busybox" > Dockerfile $ touch foo bar baz
With --compress
--compress
$ docker build -t repro-33706 -f - --compress . <Dockerfile Sending build context to Docker daemon error during connect: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.30/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=.dockerfile.f92440440ad6bc42e6af&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=repro-33706&target=&ulimits=null: unexpected EOF
Without --compress;
$ docker build -t repro-33706 -f - . <Dockerfile Sending build context to Docker daemon 3.597kB Step 1/1 : FROM busybox ---> 7968321274dc Successfully built 7968321274dc Successfully tagged repro-33706:latest
Sorry, something went wrong.
The same bug exists with DOCKER_CONTENT_TRUST=true. Both of these features attempt to rewrite the context after compression.
DOCKER_CONTENT_TRUST=true
Successfully merging a pull request may close this issue.
Originally reported by @RomanSaveljev in moby/moby#33706
Description
Docker build fails.
A command like this will fail:
Steps to reproduce the issue:
Dockerfile
has a singleFROM alpine
statement.
) folderdocker build --verbose -t xxx -f - --compress . <Dockerfile
Describe the results you received:
Describe the results you expected:
Successful build
Additional information you deem important (e.g. issue happens only occasionally):
Happens every time
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Docker engine runs in AWS node
The text was updated successfully, but these errors were encountered: