qemu-docker icon indicating copy to clipboard operation
qemu-docker copied to clipboard

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

Open richervip opened this issue 1 year ago • 1 comments

Is your question not already answered in the FAQ?

  • [X] I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • [X] I am sure my question is not about 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.

richervip avatar Aug 27 '24 01:08 richervip

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

volumes:
  - /home/example:/storage2

kroese avatar Sep 01 '24 15:09 kroese