Use load instead of import on the registry image itself

This commit is contained in:
Jason Ertel
2020-08-15 09:42:56 -04:00
parent 2c9c328a40
commit d8833abf73
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ dockerregistryconf:
# Install the registry container
so-dockerregistry:
docker_container.running:
- image: registry:2
- image: registry:latest
- hostname: so-registry
- restart_policy: always
- port_bindings:

View File

@@ -998,7 +998,7 @@ install_cleanup() {
import_registry_docker() {
if [ -f /nsm/docker-registry/docker/registry_image.tar ]; then
logCmd "service docker start"
logCmd "docker import /nsm/docker-registry/docker/registry_image.tar registry:2"
logCmd "docker load -i /nsm/docker-registry/docker/registry_image.tar"
else
info "Need to download registry"
fi