docker - 如何修复“错误:docker 版本低于 v1.7。需要“docker exec”的管道函数
问题描述
我尝试通过Jenkins管道在docker容器下做一些事情,我的jenkinsfile如下:
pipeline {
agent { docker 'node:6.3' }
stages {
stage('test') {
steps {
npm version
}
}
}
}
我的码头工人版本:
$docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.2.1
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.2.1
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
Is there anyone has some suggestions.
然后,我收到错误消息:
[Bitbucket] Notifying commit build result
[Bitbucket] Build result notified
ERROR: The docker version is less than v1.7. Pipeline functions
requiring 'docker exec' (e.g. 'docker.inside') or SELinux labeling will not work.
Finished: FAILURE
有没有人有一些建议?谢谢~
解决方案
升级 docker CE 后,此问题已解决。
推荐阅读
- git - 从通过 ssh 访问的远程计算机的 git push 给出“权限被拒绝(公钥)”错误
- c# - 如何定位网络服务主机点
- c++ - 使用 C++ 读取点云 .bin 文件
- c# - C# 在分隔符上拆分字符串,然后删除一个元素,然后使用分隔符再次连接
- excel - 从具有条件格式的工作表中复制行并使用新工作表的 CF
- php - 如何自定义 PHPMailer 错误信息
- javascript - 如何使用按钮显示在 Django 模板中?
- html-email - 在 Outlook 2019 中扭曲的动画 .gif
- django - 在 Wagtail v2 API 中,如何按外键字符串过滤(由 __str__ 方法提供)
- css - CSS 样式化 img 和段落子元素