Coder Social home page Coder Social logo

Comments (4)

zhangchi6414 avatar zhangchi6414 commented on July 23, 2024 1

To create additional disk images, modify your compose file like this:要创建其他磁盘映像,请按如下方式修改撰写文件:

environment:
  DISK2_SIZE: "32G"
  DISK3_SIZE: "64G"
volumes:
  - /home/example:/storage2
  - /mnt/data/example:/storage3

It will create a data2.img in /storage2, etc.它将创建一个 data2.img in /storage2 等。

好的非常感谢!

from windows.

kroese avatar kroese commented on July 23, 2024

I do not completely understand your question. You are not wasting any disk? It uses a file called data.img as the disk. And if you want to replace that file by another one, thats fine.

from windows.

zhangchi6414 avatar zhangchi6414 commented on July 23, 2024

I do not completely understand your question. You are not wasting any disk? It uses a file called data.img as the disk. And if you want to replace that file by another one, thats fine.我不完全理解你的问题。你没有浪费任何磁盘吗?它使用称为 data.img 磁盘的文件。如果你想用另一个文件替换那个文件,那很好。

我需要的是新加一个data.img的磁盘文件而不是替换它,使用qemu-img创建多个磁盘驱动器而不是使用--device来挂载本机的物理磁盘。这样有什么好办法吗?

from windows.

kroese avatar kroese commented on July 23, 2024

To create additional disk images, modify your compose file like this:

environment:
  DISK2_SIZE: "32G"
  DISK3_SIZE: "64G"
volumes:
  - /home/example:/storage2
  - /mnt/data/example:/storage3

It will create a data2.img in /storage2, etc.

from windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.