Commit 7179a4b0 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

docs: Arguments info

parent 9dc85f09
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -69,6 +69,8 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm
        DISK_SIZE: "256G"
    ```
    
    This can also be used to resize the existing disk to a larger capacity without data loss.
    
  * ### How do I change the location of the data disk?

    To change the data disk's location from the default Docker volume, include the following bind mount in your compose file:
@@ -80,17 +82,6 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm

    Replace the example path `/home/user/data` with the desired storage folder.

  * ### How do I change the space reserved by the data disk? 

    By default, the entire disk space is reserved in advance. To create a growable disk that only reserves the space that is actually used, add the following environment variable:

    ```yaml
    environment:
        ALLOCATE: "N"
    ```

    Keep in mind that this will not affect any of your existing disks, it only applies to newly created disks.

  * ### How do I increase the amount of CPU or RAM?

    By default, a single core and 512 MB of RAM are allocated to the container. To increase this, add the following environment variables:
@@ -112,6 +103,15 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm

    If you receive an error from `kvm-ok` indicating that KVM acceleration can't be used, check your BIOS settings.
    
  * ### How do I provide extra arguments to QEMU?

    You can create the `ARGUMENTS` environment variable to provide additional arguments to QEMU at runtime:

    ```yaml
    environment:
        ARGUMENTS: "-drive file=/seed.iso,format=raw,if=virtio"
    ```

  * ### How do I assign an individual IP address to the container?

    By default, the container uses bridge networking, which shares the IP address with the host.