mkdocs-benoit.jp.net/HowtoLXD.page
2018-01-10 21:23:59 +00:00

68 lines
No EOL
1.1 KiB
Text

Some commands:
```
lxc image alias list images:
lxc info <name>
lxc config edit <name>
lxc config sonw <name>
lxc exec <name> bash
lxc config set <name> limits.memory 512MB
lxc config set <name> limits.cpu 2
lxc config device set <name> root size 20GB
lxc launch images:debian/stretch/amd64 <name>
lxc list
lxc storage volume list <storagename>
# mode privileged
lxc launch ubuntu:16.04 test -c security.privileged=true -c security.nesting=true
```
Chemins :
Normal :
Snap :
Paquets à installer pour se sentir à l'aise sur une Debian ou Ubuntu
```
etckeeper vim iputils-ping
ufw
dnsutils
```
```
# systemctl disable getty@tty{1..4}
# reboot
```
- Activer ufw
- Activer journald
- Mettre le bon hostname
- Installer postfix
Paquets à installer pour se sentir à l'aise sur une Alpine
```
@edge http://dl-cdn.alpinelinux.org/alpine/edge/community
```
```
etckeeper@edge vim
```
```
sed -i 's/^tty/# tty/g' /etc/inittab
# clean messages
rm /var/log/messages
```
Nginx :
```
set_real_ip_from W.X.Y.Z;
real_ip_recursive on;
real_ip_header X-Forwarded-For;
```