How to mount local volumes in docker machine

后端 未结 12 1409
天涯浪人
天涯浪人 2020-11-27 10:05

I am trying to use docker-machine with docker-compose. The file docker-compose.yml has definitions as follows:

web:
  build: .
  command: ./run_web.sh
  volu         


        
12条回答
  •  天涯浪人
    2020-11-27 11:11

    Since October 2017 there is a new command for docker-machine that does the trick, but make sure there is nothing in the directory before executing it, otherwise it might get lost:

    docker-machine mount :

    Check the docs for more information: https://docs.docker.com/machine/reference/mount/

    PR with the change: https://github.com/docker/machine/pull/4018

提交回复
热议问题