mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Use load instead of import on the registry image itself
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user