| Both sides previous revisionPrevious revision | |
| lxd [2025/01/02 11:10] – maxi | lxd [2025/01/02 11:11] (current) – maxi |
|---|
| lxc list : Liste les instances. | lxc list : Liste les instances. |
| lxc info <instance> : Affiche des informations sur l'état d'une instance. | lxc info <instance> : Affiche des informations sur l'état d'une instance. |
| | |
| lxc start <instance> : Démarre une instance. | lxc start <instance> : Démarre une instance. |
| | |
| lxc stop <instance> [--force] : Arrête une instance. | lxc stop <instance> [--force] : Arrête une instance. |
| | |
| lxc delete <instance> [--force|--interactive] : Supprime une instance. | lxc delete <instance> [--force|--interactive] : Supprime une instance. |
| ===== Accès aux instances ===== | ===== Accès aux instances ===== |
| |
| lxc exec <instance> -- <commande> : Exécute une commande dans une instance. | lxc exec <instance> -- <commande> : Exécute une commande dans une instance. |
| | |
| lxc exec <instance> -- bash : Accède au shell d'une instance (si bash est installé). | lxc exec <instance> -- bash : Accède au shell d'une instance (si bash est installé). |
| | |
| lxc console <instance> [flags] : Accède à la console d'une instance. | lxc console <instance> [flags] : Accède à la console d'une instance. |
| | |
| lxc file pull <instance>/<chemin_du_fichier_instance> <chemin_local> : Récupère un fichier depuis une instance. | lxc file pull <instance>/<chemin_du_fichier_instance> <chemin_local> : Récupère un fichier depuis une instance. |
| | |
| lxc file pull <chemin_local> <instance>/<chemin_du_fichier_instance> : Envoie un fichier vers une instance. | lxc file pull <chemin_local> <instance>/<chemin_du_fichier_instance> : Envoie un fichier vers une instance. |
| ===== Utilisation des projets ===== | ===== Utilisation des projets ===== |
| |
| lxc project create <projet> [--config <option>] : Crée un projet. | lxc project create <projet> [--config <option>] : Crée un projet. |
| | |
| lxc project set <projet> <option> : Configure un projet. | lxc project set <projet> <option> : Configure un projet. |
| | |
| lxc project switch <projet> : Passe à un autre projet. | lxc project switch <projet> : Passe à un autre projet. |