Sunday, August 30, 2020

lxd notes

# set password on server 
lxc config set core.trust_password .........passwordhere....
  
# lxd define a remote: remotename is a string, the name by which you want to use the remote, arbitrary
lxc remote add remotename 192.168.10.4 
# you'll be asked for a password after enter

# then list containers on that remote
lxc list remotename: 

# list images on that remote
lxc list remotename:

# get the result of a command in a particular format
lxc list remotename: --format=json 
lxc list remotename: --format=cvs
lxc list remotename: --format=yaml 

# rename container 
lxc stop old_container_name
lxc move old_container_name new_container_name 

  

No comments:

Post a Comment