How to fix docker - error creating container: initialize specified but the data directory has files
Channel:
Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=pFQC2F8SRag
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.
Other Videos By Ambar Hasbiyatmoko
Tags:
docker
container
run
mysql
image
volume
ubuntu
vps
terminal
server
create
linux
fix
error
logs