在 ubuntu 上运行的 docker 崩溃,出现错误“/bin/bash:加载共享库时出错:”

在 ubuntu 上运行的 docker 崩溃,出现错误“/bin/bash:加载共享库时出错:”

我在 ubuntu 14.04 中运行了一些 mysql docker。有时,docker 会无缘无故突然退出。在通过运行检查日志时

docker log containerID

,它总是给出这样的错误,

/bin/bash: error while loading shared libraries: libncurses.so.5: cannot stat shared object: Error 11

或者,

/bin/bash: error while loading shared libraries: libdl.so.2: cannot stat shared object: Error 11

重启几次后,docker 可以再次启动,没有任何错误。大多数相关解决的问题都是关于“cannot stat shared object: No such file or directory”错误。你能帮忙给出一些建议来找出根本原因吗?

Docker 版本:

 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

集装箱信息:

"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": {}
        },

相关内容