From 0d6a062f9ef6eb25fce300c9e71fb68767de6e7d Mon Sep 17 00:00:00 2001 From: Alban Bronisz Date: Tue, 27 Feb 2024 09:32:04 +0100 Subject: [PATCH] Update docker --- docker.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docker.md b/docker.md index a8f086a..bc513d0 100755 --- a/docker.md +++ b/docker.md @@ -1,23 +1,15 @@ - docker build -t project/name . - -Run interactif: - - docker run -it project/name bash - - -Connection to an running container: - - docker exec -it project/name bash +- build: `docker build -t project/name .` +- Run interactif: `docker run -it project/name bash` +- Connection to an running container: `docker exec -it project/name bash` +- remove untagged images: `docker rmi $(docker images -f "dangling=true" -q)` Inspection de docker -------------------- -Use dive - - dive project/name (apt install dive) +Use dive: `dive project/name (apt install dive)`