赵走x博客
网站访问量:151444
首页
书籍
软件
工具
古诗词
搜索
登录
12、Ubuntu安装docker
11、Docker安装Wekan面板并修改访问端口
10、docker-compose限制内存, cpu资源以及固定ip写法
9、ubuntu卸载docker
8、Ubuntu 下修改docker的默认存储位置
7、记录以此mongodb突然不断重启的问题
6、Service 'XXX' failed to build: error pulling image configuration:
5、Centos安装Docker
4、docker-compose 提示没有docker-compose.yml文件,但明明存在
3、Docker容器时间与主机时间不一致的问题
2、删除无用docker镜像
1、ERROR: Version in "./docker-compose.yml" is unsupported.
1、ERROR: Version in "./docker-compose.yml" is unsupported.
资源编号:76461
微服务
docker相关问题
热度:122
来源:https://blog.csdn.net/qq_32768743/article/details/86635505
# 报错 ``` ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/ ``` # 解决方案 看了下docker的文档,应该是docker-compose的版本太老了。卸掉老版本,重新装 ``` pip install docker-compose -i https://mirrors.aliyun.com/pypi/simple/ ``` 然后在.bashrc中增加 ``` export PATH="/home/pikachu/.local/bin":$PATH ``` 重新运行就可以了