Home > Software engineering >  docker compose documentation tutorial, Unknown database 'todos'
docker compose documentation tutorial, Unknown database 'todos'

Time:05-29

i followed docker compose tutorial enter image description here

You might want to try deleting the volume and recreating your containers.

docker volume rm todo-mysql-data
docker-compose up --force-recreate

CodePudding user response:

Thanks Hambrook i found that there was a volume with the same name i tried to create

docker volume ls 
DRIVER    VOLUME NAME
local     app_todo-mysql-data
local     todo-mysql-data

so i removed it and write command again

 docker compose up 

and it's work

  • Related