moby: docker 20.10.4 on linux and windows breaks docker-compose run -T
Description
Upgrading from 20.10.3 to 20.10.4 on Windows 2019 (and also in Ubuntu 20.04) breaks docker-compose run -T
. It never returns any output nor ends.
Please note that this works fine with 20.10.3.
Steps to reproduce the issue:
docker-compose run -T hello
Describe the results you received:
None.
Describe the results you expected:
Hello World!
Additional information you deem important (e.g. issue happens only occasionally):
I’m using the docker binaries from https://github.com/rgl/docker-ce-windows-binaries-vagrant/releases
I’m using docker-compose 1.26.2.
I’m using this docker-compose file:
version: '3.8'
services:
hello:
image: mcr.microsoft.com/windows:1809
command: cmd.exe /c "echo Hello World!"
Output of docker version
:
Client:
Version: 20.10.4
API version: 1.41
Go version: go1.13.15
Git commit: d3cb89ee53
Built: Fri Feb 26 20:00:01 2021
OS/Arch: windows/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.4
API version: 1.41 (minimum version 1.24)
Go version: go1.13.15
Git commit: 363e9a88a1
Built: Fri Feb 26 19:57:55 2021
OS/Arch: windows/amd64
Experimental: false
Output of docker info
:
Client:
Context: default
Debug Mode: false
Server:
Containers: 22
Running: 0
Paused: 0
Stopped: 22
Images: 100
Server Version: 20.10.4
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
Operating System: Windows Server 2019 Standard Evaluation Version 1809 (OS Build 17763.1757)
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 3.999GiB
Name: windows
ID: JTOV:XZLF:QOVU:7I3C:PUWJ:DGCD:TRBB:QRBV:AIT3:XIJH:YB4I:HD3S
Docker Root Dir: C:\ProgramData\docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
os=windows
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: API is accessible on http://0.0.0.0:2375 without encryption.
Access to the remote API is equivalent to root access on the host. Refer
to the 'Docker daemon attack surface' section in the documentation for
more information: https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
Additional environment details (AWS, VirtualBox, physical, etc.):
Docker is running in Windows 2019 in a qemu-kvm VM (as launched by https://github.com/rgl/gitlab-ci-vagrant).
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 34
- Comments: 18 (7 by maintainers)
Links to this issue
Commits related to this issue
- pin docker version to 20.10.3 Why: * 20.10.4 has a blocking issue, see https://github.com/moby/moby/issues/42093 — committed to wazo-platform/sf-config by sduthil 3 years ago
- pin docker version to 20.10.3 Why: * 20.10.4 has a blocking issue, see https://github.com/moby/moby/issues/42093 — committed to wazo-platform/sf-config by sduthil 3 years ago
- [#1] Temporary disable `-T` on docker-compose calls From Semaphore CI support team: https://github.com/moby/moby/issues/42093 — committed to akvo/unep-gpml by iperdomo 3 years ago
We’re also experiencing this issue. In our case we’re using
docker-compose
so it’s hanging ondocker start
:Looking at the container, it’s just stuck in the “created” status indefinitely.
Rolling back to 20.10.3 resolves the issue.
Using
COMPOSE_INTERACTIVE_NO_CLI=1
worked for us.We’ve had major issues on CentOS 7, resulting in server outages. Here’s how we downgraded
@mendhak Thanks! Thas was useful. So difference looks to to be that for the reproducer,
docker create
does not have a--tty
Docker CLI 19.03:
Docker CLI 20.10
But on Docker 20.10 with a TTY attached (
--tty
oncreate
);I narrowed it down to https://github.com/docker/cli/commit/3c87f01b1801789cb5d4aa470bd1d50f93869b59.
Reverting https://github.com/docker/cli/commit/3c87f01b1801789cb5d4aa470bd1d50f93869b59 (https://github.com/docker/cli/pull/2960, backport of https://github.com/docker/cli/pull/2929) fixes the problem.
I was actually looking at those changes earlier today (for other reasons); inclined to revert the PR (for now), while we dig further into what’s causing the issue.
/cc @cpuguy83
Downgrade only the CLI solves this issue, so at least this seems to be caused by the CLI component only.
Workaround for Ubuntu and derivatives:
It works after upgrade to kernel 3.10.0-1160.24.1.el7.x86_64. Many thanks !
@thaJeztah @DrMeers
I confirm that docker 20.10.5 now works on linux and windows. Thank You!
Thanks @markvr. Yes, it’s a bit odd, and we need to do more digging to see what causes the exact issue. I opened https://github.com/docker/cli/pull/2987 to revert that patch for now