Update docker
This commit is contained in:
parent
959d1b3c1d
commit
0d6a062f9e
18
docker.md
18
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)`
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user