- Created:
- Updated:
Docker 建立自定义路径的 volume
需要提前建立好要挂载的路径
使用命令形式
docker volume create --driver local -o o=bind -o type=none -o device=/dir volume_name使用 docker-compose
volumes:
  volume_name:
    driver: local
    driver_opts:
      type: none
      device: /dir
      o: bind