Files

29 lines
636 B
Markdown
Raw Permalink Normal View History

## portainer-ce
现在使用的LTS版本是2.33.4 和 STS版本是2.35.0,都不支持最新的 docker 版本 >= 29.0.0
**解决的方法:**
在 docker 的 service 文件 中添加如下:
```
## 找到 docker.service 文件 `systemctl status docker` 会显示 docker.service 文件的完整路径
### 在 [Service] 段内添加
[Service]
Environment=DOCKER_MIN_API_VERSION=1.24
### 保持文件
### 重启 docker 服务
systemctl daemon-reload
systemctl restart docker
```
也可以在 `/etc/docker/daemon.json` 中添加如下:
```
{
"min-api-version": "1.24"
}
```
最后重启 docker 服务
```
systemctl restart docker
```