27 lines
772 B
YAML
27 lines
772 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
libvirtd:
|
|
image: docker.registry:5000/libvirtd:latest
|
|
container_name: "libvirtd"
|
|
ipc: host
|
|
network_mode: host
|
|
pid: host
|
|
user: root
|
|
privileged: true
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
LIBVIRTD_DEFAULT_NETWORK: "true"
|
|
LIBVIRTD_DEFAULT_POOL_PATH: "/var/lib/libvirt/pool/default"
|
|
PRE_DOWNLOAD_IMAGES:
|
|
"https://cdimage.debian.org/cdimage/openstack/current-10/debian-10-openstack-amd64.qcow2,\
|
|
https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2"
|
|
volumes:
|
|
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
|
|
- libvirt-images:/images
|
|
- libvirt-pool:/var/lib/libvirt/pool
|
|
- /:/host:Z
|
|
volumes:
|
|
libvirt-images:
|