mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-15 01:17:36 +00:00
GitBook: [master] 2 pages modified
This commit is contained in:
parent
03c979eb55
commit
0782180719
2 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ docker exec -it wordpress bash
|
|||
When you are given an exported docker image \(probably in `.tar` format\) you can use the following command to **extract the modifications**:
|
||||
|
||||
```bash
|
||||
docker save <image> > image.tar #Export the image to a .tar file
|
||||
container-diff analyze -t history image.tar
|
||||
```
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ docker network ls #List network info
|
|||
docker exec -it <containerid> /bin/sh #Get shell inside a container
|
||||
docker commit <cotainerid> registry:5000/name-container #Update container
|
||||
docker export -o alpine.tar <containerid> #Export container as tar file
|
||||
docker save -o ubuntu.tar <image> #Export an image
|
||||
docker ps -a #List running and stopped containers
|
||||
docker stop <containedID> #Stop running container
|
||||
docker rm <containerID> #Remove container ID
|
||||
|
|
Loading…
Reference in a new issue