小编Mau*_*_Ed的帖子

Windows卷上的docker-compose无法正常工作

在过去的一周中,我一直在与Docker一起玩,并且认为容器的想法非常有用,但是尽管在过去的三天内阅读了所有内容,但我无法使卷映射正常工作

get docker-compose to use my existing volume.

    Docker Version: 18.03.1-ce
    docker-compose version 1.21.1, build 7641a569

I created a volume using the following via a Dockerfile

    # Reference SQL image
    FROM microsoft/mssql-server-windows-developer

    # Create directory within SQL container for database files mapped to the    volume
    VOLUME sqldata:c:/MSSQL

and here it shows:
    C:\ProgramData\Docker\volumes>docker volume ls
    local               sqldata

Now I've tried probably 60+ different "solutions" based on StackOverflow and Docker forums, but none of them work. (Note despite the names below with …
Run Code Online (Sandbox Code Playgroud)

yaml docker-compose docker-volume

5
推荐指数
2
解决办法
8219
查看次数

标签 统计

docker-compose ×1

docker-volume ×1

yaml ×1