usoftopen/docker-lnmp

mysqld failed

Closed this issue · 1 comments

zrmei commented
mysql    | ERROR: mysqld failed while attempting to check config
mysql    | command was: "mysqld --disable-partition-engine-check --verbose --help --log-bin-index=/tmp/tmp.N45ZAsZa5X"
mysql    |
mysql    | mysqld: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Permission denied
mysql exited with code 1
mysql exited with code 1
mysql exited with code 1
mysql exited with code 1
mysql exited with code 1

但是我手动操作又是可以的

docker \
  run \
  --detach \
  --env MYSQL_ROOT_PASSWORD=root \
  --name mysql \
  --publish 3306:3306 \
  -v /var/www/docker-lnmp-master/work/components/mysql/log:/var/log/mysql \
  -v /var/www/docker-lnmp-master/work/components/mysql/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf \
  mysql:5.6;
zrmei commented

remove privileged: true