Can't run any container: shim error: open pid: no such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker.io (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Trying to run any container exits with this error message:
$ docker run -itd busybox
6f97c56ca785505
docker: Error response from daemon: shim error: open pid: no such file or directory.
The daemon logs aren't any more interesting:
Nov 23 13:27:16 astoria dockerd[12388]: time="2016-
Nov 23 13:27:16 astoria dockerd[12388]: time="2016-
Nov 23 13:27:16 astoria dockerd[12388]: time="2016-
There's some upstream discussion about this being about incompatibilities between versions of components, with a recommendation that one upgrades everything and prays the problem goes away: https:/
I have recently updated from 16.04 to 16.10. I do not have any 16.04 packages left installed (except the ansible ppa!):
% sudo apt list --installed | egrep 'docker|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ansible/
containerd/
docker.
runc/yakkety,now 1.0.0~rc1-0ubuntu1 amd64 [installed]
I am using the btrfs storage backend on the stock kernel, with the default settings from apparmor and systemd, as far as I'm aware. Purging and reinstalling the docker.io package does not fix the issue. Deleting all images and containers makes no difference.
% docker info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 2
Server Version: 1.12.1
Storage Driver: btrfs
Build Version: Btrfs v4.7.3
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.8.0-27-generic
Operating System: Ubuntu 16.10
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 23.49 GiB
Name: astoria
ID: ZHHL:W5GB:
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https:/
WARNING: No swap limit support
Insecure Registries:
127.0.0.0/8
% docker version
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Mon, 10 Oct 2016 21:38:17 +1300
OS/Arch: linux/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Mon, 10 Oct 2016 21:38:17 +1300
OS/Arch: linux/amd64
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: docker.io 1.12.1-0ubuntu15
ProcVersionSign
Uname: Linux 4.8.0-27-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
Date: Wed Nov 23 13:26:40 2016
SourcePackage: docker.io
UpgradeStatus: Upgraded to yakkety on 2016-10-13 (40 days ago)
upstart.
Interesting. I've seen some success in situations like this from simply restarting the Docker daemon -- mind giving that a shot?