Add insecure registry line for daemon.json.

This commit is contained in:
root 2018-01-06 19:44:30 +00:00
parent 43dce8e7ba
commit 56a9e18b13
1 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,8 @@ DOCKER_OPT[0]='.["dns"] = ["52.174.55.168","188.165.200.156"]'
DOCKER_OPT[1]='.["storage-driver"] = "zfs"'
#DOCKER_OPT[2]='.["storage-opts"] = ["zfs.fsname=rpool/docker","size=256"]'
DOCKER_OPT[2]='.["storage-opts"] = ["zfs.fsname=rpool/docker"]'
DOCKER_OPT[3]='.["insecure-registries"] = ["soleine.lan:5000"]'
for ((i = 0; i < ${#DOCKER_OPT[@]}; ++i)); do
OPTION="${DOCKER_OPT[$i]}"
@ -91,7 +93,7 @@ done
groupadd docker
#usermod -aG docker $USER
gpasswd -a $USER docker
gpasswd -a "$USER" docker
newgrp docker
/etc/init.d/docker restart