Linux Containers

1. Installation sudo apt install lxd

2. Create container lxc launch ubuntu:18.04 

3. List containers lxc list

4. Start/stop container lxc start  lxc stop 

5. Copy file from/to container lxc file pull /  lxc file push  / lxc file push -r  /

6. Execute command in container lxc exec  --

7. Device management lxc config device add   proxy listen=tcp:0.0.0.0: connect=tcp:: lxc config device remove <container-name> <device-name> lxc config device list <container-name> lxc config device show <container-name>

8. Check open ports sudo netstat -lpat sudo lsof -i -n