Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 751 Bytes

docker.md

File metadata and controls

53 lines (39 loc) · 751 Bytes

1. docker

安装

curl -sSL https://get.daocloud.io/docker | sh

或者

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

启动、停止

systemctl 方式

重启docker服务

sudo systemctl restart docker

关闭docker

sudo systemctl stop docker

service 方式

重启docker服务

 sudo service docker restart

关闭docker

 sudo service docker stop

2. docker-compose安装

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
chmod +x /usr/local/bin/docker-compose

3. 安装git

ubuntu系统上执行 apt install git