mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
add bip for docker
This commit is contained in:
@@ -841,11 +841,12 @@ docker_registry() {
|
|||||||
echo "Setting up Docker Registry" >> "$setup_log" 2>&1
|
echo "Setting up Docker Registry" >> "$setup_log" 2>&1
|
||||||
mkdir -p /etc/docker >> "$setup_log" 2>&1
|
mkdir -p /etc/docker >> "$setup_log" 2>&1
|
||||||
# Make the host use the manager docker registry
|
# Make the host use the manager docker registry
|
||||||
|
DNETBIP=$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24
|
||||||
if [ -n "$TURBO" ]; then local proxy="$TURBO"; else local proxy="https://$MSRV"; fi
|
if [ -n "$TURBO" ]; then local proxy="$TURBO"; else local proxy="https://$MSRV"; fi
|
||||||
printf '%s\n'\
|
printf '%s\n'\
|
||||||
"{"\
|
"{"\
|
||||||
" \"registry-mirrors\": [ \"$proxy:5000\" ],"\
|
" \"registry-mirrors\": [ \"$proxy:5000\" ],"\
|
||||||
" \"bip\": \"$(echo $DOCKERNET | awk -F'.' '{print $1,$2,$3,1}' OFS='.')/24,\"\
|
" \"bip\": \"$DNETBIP\",\
|
||||||
" \"default-address-pools\": ["\
|
" \"default-address-pools\": ["\
|
||||||
" {"\
|
" {"\
|
||||||
" \"base\" : \"$DOCKERNET\","\
|
" \"base\" : \"$DOCKERNET\","\
|
||||||
|
|||||||
Reference in New Issue
Block a user