Created
August 20, 2019 14:29
-
-
Save AstraSerg/815e83cde7f7c9a3e54f38f2032a652d to your computer and use it in GitHub Desktop.
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
docker update | |
usermod -aG docker astraserg | |
apt-get remove docker docker-engine docker.io containerd runc | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get install docker-ce | |
mv /etc/systemd/system/docker.service /home/ | |
systemctl daemon-reload | |
systemctl start docker | |
root@monaco:~# cat /etc/systemd/system/docker.service.d/docker.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --tlsverify --tlscacert /etc/docker/ca.pem --tlscert /etc/docker/server.pem --tlskey /etc/docker/server-key.pem --label provider=generic --registry-mirror https://docregistry.aaa.com:5000 | |
systemctl daemon-reload | |
systemctl restart docker | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment