WGCLOUD监测docker容器错误: Error response from daemon: client version 1.41 is too new. Maximum supported A
·
使用WGCLOUD监控docker容器时,发现agent日志出现错误信息:
[wgcloud-agent]2022/05/20 11:28:26 dockerUtil.go:38: GetDockerApiContainerList err: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40
原因描述:
docker api现在最多只能支持到1.40,但是client是1.41版本的
解决方法:
(1) 临时修改方法,在agent主机执行指令
export DOCKER_API_VERSION=1.40
(2) 永久修改,如下
[root@vultr bin]# vim /etc/profile
#在文件最后加上
export DOCKER_API_VERSION=1.40
更多推荐
所有评论(0)