#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

echo ">>> Registering private docker registry: boot.dcos:5000"
sed -i -e "s/OPTIONS='/OPTIONS='--insecure-registry boot.dcos:5000 /" /etc/sysconfig/docker
systemctl restart docker

#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

echo ">>> Registering private docker registry: boot.dcos:5000"
sed -i -e '/^ExecStart=/ s/$/ --insecure-registry=boot.dcos:5000/' /usr/lib/systemd/system/docker.service

echo ">>> Reloading systemd service configs"
systemctl daemon-reload

echo ">>> Restarting docker"
systemctl restart docker

Fix docker private registry configuration
Fix docker private registry configuration
