rap2搭建

1、输入 docker-compose up -d

之后报错

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 version of "2" (or "2.0") 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.

报错原因是版本不匹配,安装后的初始版本为下:

首先要安装docker

查看版本

(base) localhost:~ zhanglj$ docker-compose --version

docker-compose version 1.8.1, build 878cff1

(base) localhost:~ zhanglj$ docker --version

Docker version 1.12.3, build 6b644ec

但是./docker-compose.yml文件中的版本为2。

最好使用快捷安装,比较方便,安装后可以升级。

2、解决好上面问题之后,开始执行docker-compose up -d

这一步又卡住了,因为公司网络比较慢,一直下载不下来。

ERROR: unexpected EOF

报这个错误

此时可以使用自己手机的热点

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值