mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
docs: make the example for 'load' work (#13102)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user