docs: make the example for 'load' work (#13102)

This commit is contained in:
Toyam Cox
2022-05-27 08:48:58 -04:00
committed by GitHub
parent 0e2f693ddd
commit a145ffc6dc

View File

@@ -199,11 +199,16 @@ config {
```
- `load` - (Optional) Load an image from a `tar` archive file instead of from a
remote repository. Equivalent to the `docker load -i <filename>` command.
remote repository. Equivalent to the `docker load -i <filename>` command. If
you're using an `artifact` block to fetch the archive file, you'll need to
ensure that Nomad keeps the archive intact after download.
```hcl
artifact {
source = "http://path.to/redis.tar"
options {
archive = false
}
}
config {
load = "redis.tar"