ERROR: In file './docker-compose.yml', volume must be a mapping not a string

后端 未结 8 1834
清歌不尽
清歌不尽 2020-12-09 02:31

Question: Why do I get this error?

ERROR: In file \'./docker-compose.yml\', volume \'mariavolume\' must be a mapping not a string.

8条回答
  •  难免孤独
    2020-12-09 03:19

    try this:

        volumes:
            - maria_volume: /var/lib/mysql
    volumes:
        maria_volume: 
            external:
                name: ~/mariadb
    

提交回复
热议问题