2通りのやり方がある。pull/cache-from を使う方法と、save/load を使う方法。 手元のプロジェクトだと前者の方がだいぶ速い。 1. pull/cache-from を使う方法 version: 2 jobs: build: machine: true environment: - DOCKER_IMAGE_REPO: your-private-repository working_directory: ~/your-repo steps: - checkout - # ...必要に応じて ecr login など - run: docker pull $DOCKER_IMAGE_REPO:latest - run: docker build -t circleci --cache-from $DOCKER_IMAGE_REPO:latest . - run: dock