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)`