LXC Grundbefehle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 51: | Zeile 51: | ||
lxc delete container-name | lxc delete container-name | ||
``` | ``` | ||
| − | |||
| − | |||
| − | |||
| − | |||
Version vom 11. Juli 2024, 05:49 Uhr
Container erstellen
- lxc launch image:distro/container-name
Container starten
- lxc start container-name
Container stoppen
- lxc stop container-name
Container neu starten
- lxc restart container-name
Container-Status anzeigen
- lxc list
Auf die Konsole des Containers zugreifen
- lxc exec container-name -- /bin/bash
Dateien zwischen Host und Container kopieren (Hochladen)
- lxc file push local-file container-name/path/in/container/
Dateien zwischen Host und Container kopieren (Herunterladen)
- lxc file pull container-name/path/in/container/ local-file
Container löschen
- lxc delete container-name
Container-Status anzeigen:
```bash lxc list ```
Auf die Konsole des Containers zugreifen:
```bash lxc exec container-name -- /bin/bash ```
Dateien zwischen Host und Container kopieren:
```bash lxc file push local-file container-name/path/in/container/ lxc file pull container-name/path/in/container/ local-file ```
Container löschen:
```bash lxc delete container-name ```