如何使用docker主机上存在的本地映像?
我尝试做一个docker save example -o img.tar
然后在我的配置中指定:
...
config {
image = "example"
load = "img.tar"
}
...
但是我得到了
2019/05/10 20:39:21.162881 [DEBUG] driver.docker: loading image from: /tmp/NomadClient698974412/1580a777-aaca-2302-edc1-3e33128b1ac8/app/local/img.tar
2019/05/10 20:39:21.162911 [WARN] client: error from prestart: failed to initialize task "app" for alloc "1580a777-aaca-2302-edc1-3e33128b1ac8": unable to open image archive: open /tmp/NomadClient698974412/1580a777-aaca-2302-edc1-3e33128b1ac8/app/local/img.tar: no such file or directory