How to fix docker - error creating container: initialize specified but the data directory has files

preview_player
Показать описание
i got an error when creating new container from mysql image.

docker run --name my-container-app -d -p 3307:3306 ........ -v my-container-app:/var/lib/mysql mysql:5.7

the error is something like this:
docker logs my-container-app
--initialize specified but the data directory has files in it. Aborting.

the issue is about the volume.

see this video for detail.
Рекомендации по теме
welcome to shbcf.ru