mkdocs-benoit.jp.net/HowtoLXD.page

59 lines
977 B
Text
Raw Normal View History

2017-08-21 19:49:14 +00:00
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>
2017-10-02 15:58:27 +00:00
# mode privileged
lxc launch ubuntu:16.04 test -c security.privileged=true -c security.nesting=true
```
2017-09-13 19:46:28 +00:00
Chemins :
Normal :
Snap :
Paquets à installer pour se sentir à l'aise sur une Debian ou Ubuntu
```
2017-09-29 08:03:18 +00:00
etckeeper vim iputils-ping
ufw
2017-09-13 19:46:28 +00:00
dnsutils
```
2017-09-26 20:37:09 +00:00
```
# systemctl disable getty@tty{1..4}
# reboot
```
2017-10-01 13:09:32 +00:00
- Activer ufw
- Activer journald
- Mettre le bon hostname
- Installer postfix
2017-09-13 19:46:28 +00:00
Paquets à installer pour se sentir à l'aise sur une Alpine
```
@edge http://dl-cdn.alpinelinux.org/alpine/edge/community
```
```
2017-09-13 19:46:28 +00:00
etckeeper@edge vim
```
```
2017-09-13 19:46:28 +00:00
sed -i 's/^tty/# tty/g' /etc/inittab
2017-09-13 19:46:28 +00:00
# clean messages
rm /var/log/messages
2017-09-13 19:46:28 +00:00
```