Use alpine as example
Use alpine as example
This commit is contained in:
commit
d405a65735
2 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ services:
|
||||||
CPU_CORES: "1"
|
CPU_CORES: "1"
|
||||||
RAM_SIZE: "512M"
|
RAM_SIZE: "512M"
|
||||||
DISK_SIZE: "16G"
|
DISK_SIZE: "16G"
|
||||||
BOOT: "http://www.example.com/image.iso"
|
BOOT: "https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-standard-3.18.2-x86_64.iso"
|
||||||
devices:
|
devices:
|
||||||
- /dev/kvm
|
- /dev/kvm
|
||||||
- /dev/vhost-net
|
- /dev/vhost-net
|
||||||
|
|
|
@ -30,7 +30,7 @@ services:
|
||||||
image: qemux/qemu-docker:latest
|
image: qemux/qemu-docker:latest
|
||||||
environment:
|
environment:
|
||||||
DISK_SIZE: "16G"
|
DISK_SIZE: "16G"
|
||||||
BOOT: "http://www.example.com/image.iso"
|
BOOT: "https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-standard-3.18.2-x86_64.iso"
|
||||||
devices:
|
devices:
|
||||||
- /dev/kvm
|
- /dev/kvm
|
||||||
- /dev/vhost-net
|
- /dev/vhost-net
|
||||||
|
@ -56,7 +56,7 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
environment:
|
environment:
|
||||||
BOOT: "http://www.example.com/image.iso"
|
BOOT: "https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-standard-3.18.2-x86_64.iso"
|
||||||
```
|
```
|
||||||
|
|
||||||
It will be downloaded only once, during the initial run of the container.
|
It will be downloaded only once, during the initial run of the container.
|
||||||
|
|
Loading…
Reference in a new issue