Docker command not found issue when deploying via CircleCI

astronomer/ap-airflow:1.10.14-buster-onbuild does not seem to have docker client installed and hence the step in CircleCI fails when it tries to run docker command. Is there an image where docker client is included or how to install it? Specifying setup_remote_docker does not help as I get the same error indicating docker command not found. Here is my sample yaml for circleci.

version: 2

jobs:
deploy:
docker:
- image: quay/astronomer/ap-airflow:1.10.14-buster
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Compile python dependencies
command: |
pip3 install pip-tools
pip3 install -r requirements.txt
- run:
name: Push to Docker Hub
command: |
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t registry.gcp0001.us-east4.astronomer.io/scientific-ion-3574/airflow:ci-$TAG .
docker login registry.gcp0001.us-east4.astronomer -u _ -p $SERVICE_ACCOUNT_KEY
docker push registry.gcp0001.us-east4.astronomer.io/scientific-ion-3574/airflow:ci-$TAG

workflows:
version: 2
build-deploy:
jobs:
- deploy:
filters:
branches:
only:
- master

We are extremely sorry about the error on the documentation!

Please make the following changes.

Image used should be a docker image not the AP Airflow image.

  deploy:
    docker:
      - image:  quay.io/astronomer/ap-airflow:1.10.12-buster

Should be changed to something like this.

  deploy:
    docker:
      - image:  docker:18.09-git

Image used for build should also be specified.

jobs:
  build:
    machine: true

Something along these lines.

jobs:
  build:
    machine:
      image: ubuntu-2004:202008-01
1 Like