Created guide for docker load command. (#18787)

* Created guide for docker load command.

* Updated subheading for consistency.
This commit is contained in:
beawolf
2018-10-15 23:08:08 +03:00
committed by Quincy Larson
parent 59bce1e1ac
commit b34e38ba75

View File

@ -0,0 +1,24 @@
---
title: Docker load
---
## Docker load
`docker load` restores a Docker image from a tar archive.
It is mostly used in conjunction with `docker save` command to transfer a Docker image without using Docker Hub or another registry.
To load an image from a file named `nginx-backup.tar`, the following command can be run:
```
docker load -i nginx-backup.tar
```
This command also recognizes gzip, bzip2 and xz compression, and decompresses the file automatically. Therefore, it can be used even without decompressing manually:
```
docker load -i nginx-backup.tar.gz
```
#### More Information:
- [Docker CLI docs: load](https://docs.docker.com/engine/reference/commandline/load/)