I am running some mysql docker in ubuntu 14.04 for a while. Sometimes, the docker quit suddenly for no reason. While checking the log by running
docker log containerID
, it always give the error like,
/bin/bash: error while loading shared libraries: libncurses.so.5: cannot stat shared object: Error 11
or,
/bin/bash: error while loading shared libraries: libdl.so.2: cannot stat shared object: Error 11
After restarted for several times, the docker can start again without any error. Most of the related resolved question is about the error "cannot stat shared object: No such file or directory". Can you help give some advice to find the root cause?
Docker version:
Version: 17.03.2-ce
API version: 1.27
Go version: go1.7.5
Git commit: f5ec1e2
Built: Tue Jun 27 03:11:13 2017
OS/Arch: linux/amd64
Container info:
"Config": {
"Hostname": "9cb17ec714cb",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"3306/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"MYSQL_ROOT_PASSWORD=XXXXXXXX",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GOSU_VERSION=1.7",
"MYSQL_MAJOR=5.7",
"MYSQL_VERSION=5.7.21-1debian8"
],
"Cmd": [
"mysqld"
],
"ArgsEscaped": true,
"Image": "mysql:5.7",
"Volumes": {
"/var/lib/mysql": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {}
},
apt-get install libncurses