Error installing mysql container with docker-compose under centos7.4 Dynamic Link Library not found

  docker, question

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 the doc-composeup is executed, 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 did you prompt this? The container under understanding is a group of completely isolated environments (containers) that can run normally. The running environment of the software does not depend on the host machine. The same docker-compose.yml is completely normal on mac. Whether the understanding of the container is wrong.

Also met. . .