qemus / qemu-docker

QEMU in a Docker container.
MIT License
493 stars 59 forks source link

[Question]: how to add new disk after container is up #582

Closed richervip closed 1 month ago

richervip commented 2 months ago

Is your question not already answered in the FAQ?

Is this a general question and not a technical issue?

Question

how to add new disk after container is up? I try to modify docker's config.v2.json file. DISK_SIZE2=4G and ARGUMENTS=-drive id=disk2,format=raw,file=/storage/disk2.img" It is not working.

kroese commented 2 months ago

Its described in the FAQ, you need to bind /storage2 like this:

volumes:
  - /home/example:/storage2