mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52: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
|
# Install the registry container
|
||||||
so-dockerregistry:
|
so-dockerregistry:
|
||||||
docker_container.running:
|
docker_container.running:
|
||||||
- image: registry:2
|
- image: registry:latest
|
||||||
- hostname: so-registry
|
- hostname: so-registry
|
||||||
- restart_policy: always
|
- restart_policy: always
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
|
|||||||
@@ -998,7 +998,7 @@ install_cleanup() {
|
|||||||
import_registry_docker() {
|
import_registry_docker() {
|
||||||
if [ -f /nsm/docker-registry/docker/registry_image.tar ]; then
|
if [ -f /nsm/docker-registry/docker/registry_image.tar ]; then
|
||||||
logCmd "service docker start"
|
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
|
else
|
||||||
info "Need to download registry"
|
info "Need to download registry"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user