docker-compose.yml
version: '3.6'
services:
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: reader
MYSQL_USER: reader
MYSQL_PASSWORD: 123456
ports:
- "3306:3306"
执行 docker-compose up 后,提示:
db_1 | /bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
mysql7_db_1 exited with code 127
db_1 | /bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
db_1 | /bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
db_1 | /bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
db_1 | /bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
为什么会提示这个,理解中的容器是一组完全可以正常运行在完全隔离的环境之中(容器),软件的运行环境并不依赖于宿主机器的。同样的docker-compose.yml在mac上完全正常的。是否对容器的理解有误的。
同样遇到。。。