GitBook: [master] 2 pages modified

This commit is contained in:
CPol 2021-01-03 12:04:12 +00:00 committed by gitbook-bot
parent 03c979eb55
commit 0782180719
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -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