Use a machine executor with an image that has a recent version of Docker.

CircleCI's recent machine executor images include everything batect requires, so all that needs to be done to use batect with CircleCI is to configure it to use one of those images.

A list of available images is published in the CircleCI documentation here. batect requires an image with a compatible version of Docker - currently version 17.06 or newer.

Adding the following to your .circleci/config.yml file instructs CircleCI to use a machine executor with the 201808-01 image, which contains Docker 18.06:

version: 2

      enabled: true
      image: circleci/classic:201808-01
      - checkout
      - run: ./batect ...

You can see a full example of using batect with CircleCI in the Golang sample project.