Docker-compose: Database is uninitialized

后端 未结 5 1332
轻奢々
轻奢々 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:40

    we can use

    docker container run -d --name mysql -e MYSQL_RANDOM_ROOT_PASSWORD=password mysql
    

    you can give any name and any password

提交回复
热议问题