Difference between revisions of "Lxd one-liners"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
host=myhost | host=myhost | ||
lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{} | lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{} | ||
| + | ``` | ||
| + | |||
| + | ``` | ||
| + | lxc list --format=json | jq --raw-output '.[].name' | xargs -i lxc config set {} boot.autostart false | ||
``` | ``` | ||
Revision as of 15:19, 2 June 2021
Delete all snaps
host=myhost
lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{}
lxc list --format=json | jq --raw-output '.[].name' | xargs -i lxc config set {} boot.autostart false