Saki's 研究记录

docker-compose 安装

字数统计: 82阅读时长: 1 min
2021/10/11

安装

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

修改权限

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

验证

1
docker-compose --version

*** 注意 ***

如果提示 docker-compose: command not found, 需要将 /usr/local/bin 路径添加到 PATH

1
export PATH=$PATH:/usr/local/bin

卸载

1
rm /usr/local/bin/docker-compose

Done.

CATALOG
  1. 1. 安装
  2. 2. 修改权限
  3. 3. 验证
  4. 4. 卸载