使用docker-compose挂载mysql目录,启动时提示:
chown: changing ownership of '/file' Operation not permitted
解决办法:在mysql的Dockerfile中加上
USER mysql