How to store a specific named docker volume at a specific location without changing the default?

前端 未结 1 1152
死守一世寂寞
死守一世寂寞 2021-01-12 12:11

I would like to create a named volume for one of my containers.

This container will need a lot more storage than other containers I run, so I would like to store tha

相关标签:
1条回答
  • 2021-01-12 12:53

    Use the local volume driver:

    docker volume create -d local -o type=none -o o=bind -o device=/host/path volname
    

    (Taken from this github comment)

    0 讨论(0)
提交回复
热议问题