kubeless/deploy/docker_registry_setup.sh
2019-03-05 18:33:23 +01:00

8 lines
317 B
Bash

#!/bin/bash
IP=$1
sed "/ExecStart/ s/$/ --insecure-registry=$IP/" /lib/systemd/system/docker.service > /lib/systemd/system/tmp
mv /lib/systemd/system/tmp /lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker.service
docker run -d -p 5000:5000 --restart=always --name registry registry:2