Last active
April 28, 2017 13:24
-
-
Save N1v0k/9bc7edf456dfaa37e33ff4ffe5d3ef19 to your computer and use it in GitHub Desktop.
Add insecure registry to xenial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir /etc/systemd/system/docker.service.d | |
echo "[Service]" > /etc/systemd/system/docker.service.d/docker.conf | |
echo "ExecStart=" >> /etc/systemd/system/docker.service.d/docker.conf | |
echo "ExecStart=/usr/bin/docker daemon -H fd:// --insecure-registry gitlab.dev.nts:6000 -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock" >> /etc/systemd/system/docker.service.d/docker.conf | |
systemctl daemon-reload | |
service docker stop | |
service docker start | |
echo "Done! On error run journalctl " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment