企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 安装 docker ``` yum update -y; yum install -y yum-utils device-mapper-persistent-data lvm2; yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo; yum install -y docker-ce; systemctl start docker; systemctl enable docker; docker version; ``` ## 安装 docker-compose 1. 直接Linux 下载解压到 /usr/local/bin/ 这种有时候下载的特别慢 ``` sudo curl -L "https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose; sudo chmod +x /usr/local/bin/docker-compose; docker-compose version; ``` 2. 官网手动下载:[https://github.com/docker/compose/releases](https://links.jianshu.com/go?to=https%3A%2F%2Fgithub.com%2Fdocker%2Fcompose%2Freleases) 下载x86架构: docker-compose-linux-x86_64 ``` 上传到一个目录, 然后复制并重命名 cp docker-compose-linux-x86_64 /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose; docker-compose version; ``` # 修改安装容器位置***** 一定要改, 不然Linux的系统盘就那么小,很容易就满了 docker info 默认位置 ``` Docker Root Dir: /var/lib/docker ``` ``` vi /etc/docker/daemon.json ``` ``` { "data-root": "/自己的路径/docker" } ``` 保存退出后 systemctl restart docker 再 docker info 查看