Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# add docker repository
sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
curl -fsSL | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] \
$(lsb_release -cs) \
sudo apt-get update
# install docker
sudo apt-get install -y docker-ce
# install docker-compose
COMPOSE_VERSION=$(curl -s | grep 'tag_name' | cut -d\" -f4)
sudo curl -L${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -a -G docker $USER
# install docker-developer-dns
git clone $HOME/.docker-developer-dns
sudo cp $HOME/.docker-developer-dns/contrib/systemd/docker.developer-dns.service /etc/systemd/system/docker.developer-dns.service
sudo systemctl enable docker.developer-dns.service
sudo systemctl start docker.developer-dns.service
echo "DNS=" | sudo tee -a /etc/systemd/resolved.conf
sudo systemctl restart systemd-resolved.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.