docker script fix

This commit is contained in:
2024-04-30 10:25:18 +00:00
parent b374e51a83
commit ae17345855
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ installing qemu guest agent and remove HW ID
virt-customize -a noble-server-cloudimg-amd64.img --install qemu-guest-agent #docker.io,docker-compose
virt-customize -a noble-server-cloudimg-amd64.img --run-command "echo -n > /etc/machine-id"
virt-customize -a noble-server-cloudimg-amd64.img --run-command "curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh"
qm create $VM_ID --name $VM_NAME --net0 virtio,bridge=vmbr0
qm set $VM_ID --cores "$CPU_CORE" --sockets "$CPU_SOCKET" --memory "$RAM"
qm importdisk "$VM_ID" noble-server-cloudimg-amd64.img local-lvm