Recently I got a server with Ubuntu 18 and docker-ce 19.03.1. For some reason, my containers are constantly set to “paused” state and eventually docker becomes unresponsive after ~16-24hours. When I execute docker-compose unpause
, the containers are unpaused but eventually get paused again. I cannot find a reason why docker would pause the containers online,
How can I diagnose this? How can I figure out why this endpoint to pause containers is being called? I enabled debug in daemon.json and I’m able to see that something is making the request to docker to pause the container. I have also tried changing to different compose/docker-ce versions available for Ubuntu 18 and they all exhibit this issue.
Aug 18 06:27:01 hive-systems dockerd[12679]: time="2019-08-18T06:27:01.846285146Z" level=debug msg="Calling POST /v1.40/containers/26672dd715bf388074c210f67ab589c27ca20e45d9bef5108c97ea99f2f0c3be/pause"
Aug 18 06:27:01 hive-systems dockerd[12679]: time="2019-08-18T06:27:01.846427503Z" level=debug msg="Calling POST /v1.40/containers/138964d6ef602bd503d6038331a7f16ef373758942dd680b017c8427e149f625/pause"
Aug 18 06:27:01 hive-systems dockerd[12679]: time="2019-08-18T06:27:01.904983849Z" level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/paused
Aug 18 06:27:01 hive-systems dockerd[12679]: time="2019-08-18T06:27:01.914001461Z" level=debug msg=event module=libcontainerd namespace=moby topic=/tasks/paused
hive@hive-systems:~$ docker version
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:21:05 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.1
API version: 1.40 (minimum version 1.12)
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:19:41 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
hive@hive-systems:~$ docker-compose version
docker-compose version 1.24.1, build 4667896b
docker-py version: 3.7.3
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.0j 20 Nov 2018
hive@hive-systems:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"