Difference between revisions of "Lxd one-liners"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "Delete all snaps ``` lxc info monitor-server | awk '{print $1}' | grep snap | xargs -i lxc delete monitor-server/{} ```")
 
Line 1: Line 1:
 
Delete all snaps
 
Delete all snaps
 
```
 
```
lxc info monitor-server | awk '{print $1}' | grep snap | xargs -i lxc delete monitor-server/{}
+
host=myhost
 +
lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{}
 
```
 
```

Revision as of 14:33, 20 May 2021

Delete all snaps

host=myhost
lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{}