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"
after executing docker-compose up, prompt:
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
Why do you prompt this? the container in question is a set of containers that can run normally in a completely isolated environment (containers), and the environment in which the software runs does not depend on the host machine. The same docker-compose.yml is perfectly normal on mac. Whether the understanding of the container is wrong.