创建 Docker 镜像失败,因为我没有在 CircleCi 环境中安装 Docker 客户端。
CircleCi官方文档只提供了安装Docker Client的Go版本,但是我的项目是用jdk-14.0.2构建的
这是我的 config.yml 文件示例:
version: 2.1
jobs:
build:
docker:
- image: openjdk:14.0.2-jdk-slim
# make working directory on circleCI
working_directory: ~/upload-image
steps:
# git pull
- checkout
# setup testing env
- setup_remote_docker:
version: 19.03.13
docker_layer_caching: true
### I believe I should install docker-cli here via jdk not via apk, but I don't know how to ###
# - run:
# name: Install Docker client
# command: apk add docker-cli
# the error occurs at this step since the docker-cli is not installed
- run:
name: doese Docker Exist
command: docker -v