SHARE
TWEET

Untitled

a guest Jun 18th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top