LXC Grundbefehle: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 25: | Zeile 25: | ||
=Container löschen= | =Container löschen= | ||
*lxc delete container-name | *lxc delete container-name | ||
| + | =Container-Status anzeigen= | ||
| + | *lxc list | ||
| + | =Auf die Konsole des Containers zugreifen= | ||
| + | *lxc exec container-name -- /bin/bash | ||
| − | Container- | + | =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 | + | *lxc file pull container-name/path/in/container/ local-file |
| − | |||
| − | + | =Container löschen= | |
| − | + | *lxc delete container-name | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | Container löschen | ||
| − | |||
| − | |||
| − | lxc delete container-name | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Aktuelle Version vom 11. Juli 2024, 05:50 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
- 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