最近需要使用到一款国产时序数据库IOTDB
,按照官网操作文档指引进行安装,出现Docker-build
在线地址异常,所以记录下。
操作系统:CentOS Linux 7 (Core)
Docker : version 20.10.9
git : version 2.30.1[出现问题的版本是1.8.3
]
[root@mobai local]# docker build -t iotdb:base git://github.com/apache/incubator-iotdb#master:docker
unable to prepare context: unable to 'git clone' to temporary context directory: error initializing submodules: usage: git submodule
这个问题后来查到是由于git版本太老导致的。
低于 2.10 的 git 不支持--depth
参数。总之,升级你的 git,原文地址:How to make shallow git submodules? - Stack Overflow
$ yum install -y git
$ git --version
=======1.8.3
$ yum remove git
$ yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
$ yum install git
如上即可。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有