安装和卸载 docker + docker-compose

date
Feb 3, 2022
slug
tip-docker-install-remove
status
Published
summary
小技巧
tags
tip
docker
type
Post
URL

Problem & Summary

Soltion - Docker

# install
curl -sSL https://get.docker.com/ | sh
# in CN
curl -sSL https://get.daocloud.io/docker | sh
# remove
sudo apt-get remove docker docker-engine && rm -fr /var/lib/docker/

Soltion - Docker-Compose

# install
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# in CN
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# remove
 
 

© Ying Bun 2021 - 2024