for-linux
for-linux copied to clipboard
docker exec -it hang
- [x] This is a bug report
- [ ] This is a feature request
- [ ] I searched existing issues before opening this one
Expected behavior
docker exec -it <contain_id_or_name> bash will give the shell
Actual behavior
docker exec -it fe36af9d8475 bash a long time hang then give under mess
failed to resize tty, using default size
the centos syslog message give
Mar 21 13:58:21 10101808 dockerd: time="2021-03-21T13:58:21.574583983+08:00" level=error msg="Handler for POST /v1.41/exec/6d320897764bdc82a01055615ccc7c18c06e85e3a17161da97e5fd76a44a5be6/resize returned error: timeout waiting for exec session ready"
Steps to reproduce the behavior
Output of docker version
:
Client: Docker Engine - Community
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:33:55 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:32:17 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker info
:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
Server:
Containers: 29
Running: 19
Paused: 0
Stopped: 10
Images: 29
Server Version: 20.10.5
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: active
NodeID: qxtswh052pvttzohfvlmjoqjw
Is Manager: true
ClusterID: bd3bhisy2zujah6beoh44c748
Managers: 1
Nodes: 2
Default Address Pool: 10.0.0.0/8
SubnetSize: 24
Data Path Port: 4789
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 10.10.18.8
Manager Addresses:
10.10.18.8:2377
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-957.5.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 62.74GiB
Name: 10101808
ID: 5NFX:HQYN:2X3N:6QSJ:J7RF:6VSJ:P77J:5SXO:5WGQ:BYRJ:H75V:3AJM
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.)
centos7 on x86_64 yum install docker-ce
Experienced same problem. As a temporary workaround I downgraded containerd.io to version 1.4.3-1
maybe relate containerd/containerd#5280
same problem.
dockerd[1131]: time="2021-09-03T13:12:25.079024667+08:00" level=error msg="Handler for POST /v1.41/exec/7b2012835e9dd6d3460d54632aa038c084b48a3094067508b7791c1e4b4f5701/resize returned error: timeout waiting for exec session ready"
update containerd.io-1.5.11-3.1.el7.x86_64.rpm, No problem
Im facing the same issue for docker version - [ew~]$ docker version Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:11:35 2023 OS/Arch: linux/amd64 Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:10:36 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit:
runc:
Version: 1.1.10
GitCommit: v1.1.10-
docker-init:
Version: 0.19.0
GitCommit: de4
Handler for POST /v1.43/exec/4e7cc48d4468ae7e296ce309562 e4b0e26bf6c2b6ddf/resize returned error: timeout waiting for exec session ready
can someone help. what to do