Update docker.md

This commit is contained in:
2021-02-08 16:36:02 +11:00
committed by GitHub
parent 27ba337ab7
commit 12a2f9ab1f
+11
View File
@@ -197,3 +197,14 @@ EXPOSE 3000
CMD [ "npm", "start" ]
```
### Inspect image's files
First, just create a container instead of running a container.
Then export the entire container to a zip file.
```
docker create --name=some-name image:tag
docker export tmp_$$ > some-name.zip
docker rm some-name
```