Docker-compose: Database is uninitialized

后端 未结 5 1445
轻奢々
轻奢々 2021-02-18 17:02

I have a problem with docker-compose and mysql:

docker-compose.yml

version: \'2\' 
  services:
   db:
    image: mysql
    volumes:
      - \"./sito/db/:         


        
5条回答
  •  一个人的身影
    2021-02-18 17:49

    It looks like you're setting the MYSQL_ROOT_PASSWORD to nothing. Per the documentation, it is required.

    https://hub.docker.com/_/mysql/

    MYSQL_ROOT_PASSWORD

    This variable is mandatory and specifies the password that will be set for the MySQL root superuser account.

提交回复
热议问题