How to deploy docker in debian 10

cat << EOF > /etc/docker/aemon.json\n{\n  "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"]\n}\n\nEOF
systemctl retart docker
systemctl restart docker

Install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose