Город МОСКОВСКИЙ
00:04:12

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

Аватар
PHP Интенсивный тренинг
Просмотры:
25
Дата загрузки:
30.11.2023 22:42
Длительность:
00:04:12
Категория:
Технологии и интернет

Описание

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.

Рекомендуемые видео