Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # list all hosts:
  2. lxc-ls -f -Fname,pid
  3.  
  4. # or get pid of one host:
  5. lxc-ls -f -Fpid mycontainer
  6. PID
  7. -----
  8. 13323
  9.  
  10. cat /proc/13323/root/etc/hostname
  11. # returns: "mycontainer"
  12.  
  13. #Non snap location on host:
  14. ls /var/lib/lxd/storage-pools/STORAGE_POOL_NAME/containers/CONTAINER_NAME/rootfs/
  15.  
  16. #Snap location on host:
  17. ls /var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/STORAGE_POOL_NAME/containers/CONTAINER_NAME/rootfs/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement