#!/bin/bash


wget -qO- https://mirror.shileizcc.com/Docker/systemd/systemd-docker-19.03.tar.gz | tar zx -C /tmp/
mv /tmp/{containerd.service,docker.service,docker.socket} /lib/systemd/system/
mkdir -p /etc/containerd && mv /tmp/config.toml /etc/containerd/config.toml

wget -qO- https://mirror.shileizcc.com/Docker/bin/docker-19.03.1.tar.gz | tar zx -C /usr/bin

groupadd docker
systemctl daemon-reload
systemctl enable docker
systemctl start docker
