Docker Community Forums

Share and learn in the Docker community.

Can't exec into containers

docker

(Upaludan) #1

After upgrading docker from 17.09.1 to 17.12.0-ce , I’m experiencing that I sometimes can’t exec into some containers.
doing a docker exec -it bash, the command never finish execution and the command prompt never returns. Had to end it with a ctrl ^C

I’m running 23 containers on the same host. I’m able to exec into most of them, but with a few, I’m not. We have never seen this problem with 17.09.1

Only solution seems to be restart the docker service on the host OS. Then when the docker engine is started and spin up the containers, I can exec into the container again

We first noticed this degraded behavior after the new version has been running for about 24 hours.

Does anyone seen anything like this issue ?

Docker version shows
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:11:19 2017
OS/Arch: linux/amd64

Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:09:53 2017
OS/Arch: linux/amd64
Experimental: false

OS is : Ubuntu “16.04.3 LTS (Xenial Xerus)”

Dokcer info:
root@cphprodswarm1-solar:~# docker info
Containers: 34
Running: 29
Paused: 0
Stopped: 5
Images: 24
Server Version: 17.12.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
NodeID: y48ey06o6ljd73e7bkgwhj95t
Is Manager: true
ClusterID: a14z9ew2w1uel5uuyemv35osd
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 192.168.81.150
Manager Addresses:
192.168.81.150:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-109-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 64
Total Memory: 125.9GiB
Name: cphprodswarm1-solar
ID: 6BBU:JAYH:VENB:B6RM:4FW4:5ZJP:VFAG:IEUF:NJGG:3PA6:XGFP:DMGW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support


Docker exec -it <container> bash completely hangs on any container. Docker version 1.12.0. Help?!