mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Merge pull request #3303 from hashicorp/doc-docker-load
Docker `load` takes a string not a slice
This commit is contained in:
@@ -122,18 +122,15 @@ The `docker` driver supports the following configuration in the job spec. Only
|
||||
}
|
||||
```
|
||||
|
||||
* `load` - (Optional) A list of paths to image archive files. If
|
||||
this key is not specified, Nomad assumes the `image` is hosted on a repository
|
||||
and attempts to pull the image. The `artifact` blocks can be specified to
|
||||
download each of the archive files. The equivalent of `docker load -i path`
|
||||
would be run on each of the archive files.
|
||||
* `load` - (Optional) Load an image from a `tar` archive file instead of from a
|
||||
remote repository. Equivalent to the `docker load -i <filename>` command.
|
||||
|
||||
```hcl
|
||||
artifact {
|
||||
source = "http://path.to/redis.tar"
|
||||
}
|
||||
config {
|
||||
load = ["redis.tar"]
|
||||
load = "redis.tar"
|
||||
image = "redis"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user