This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do echo $vmid; done | |
| for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do qm shutdown $vmid; done | |
| for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do qm stop $vmid; done | |
| - DANGER WILL ROBINSON! - | |
| for vmid in $(qm list | grep vm | grep stopped | grep -v 110 | awk '{print $1}'); do qm destroy $vmid; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run \ | |
| --name {{printf "%q" .Name}} \ | |
| {{- with .HostConfig}} | |
| {{- if .Privileged}} | |
| --privileged \ | |
| {{- end}} | |
| {{- if .AutoRemove}} | |
| --rm \ | |
| {{- end}} | |
| {{- if .Runtime}} |