From 845d8a0b6644679efbdbd4f24930647267302c7e Mon Sep 17 00:00:00 2001 From: jlecour Date: Mon, 8 Nov 2021 10:03:07 +0100 Subject: [PATCH] =?UTF-8?q?ex=C3=A9cuter=20une=20commande=20dans=20un=20co?= =?UTF-8?q?nteneur,=20sans=20y=20rester=20attach=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoLXC.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoLXC.md b/HowtoLXC.md index e39c74aa..2208d3de 100644 --- a/HowtoLXC.md +++ b/HowtoLXC.md @@ -119,6 +119,12 @@ Autres commandes utiles : Pour quitter un `lxc-console`. Il faut faire ``. Il semblerait cependant que cela ne fonctionne pas ! +Pour exécuter une commande dans un conteneur, sans y rester attaché : + +~~~ +# lxc-attach -n foo -- command --with --arguments +~~~ + # Divers / FAQ / Diagnostic ## systemd