User Tools

Site Tools


lxd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
lxd [2025/01/02 11:10] maxilxd [2025/01/02 11:11] (current) maxi
Line 17: Line 17:
 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.
lxd.1735816258.txt.gz · Last modified: 2025/01/02 11:10 by maxi