I have this bitbucket-pipelines.yml
image: atlassian/default-image
pipelines:
custom:
test-build-docker-image:
- step:
name: Build Docker image
script:
- |
docker build -f - . <<EOF
FROM busybox:1.36.1
CMD echo just a test
EOF
caches:
- docker
services:
- docker
definitions:
services:
docker:
memory: 7168
options:
docker: true #enabling docker daemon
size: 2x
When I run the pipeline the second time, I expect the layers to be cached. However, the pipeline always builds from scratch (incl. pulling the busybox image).
Output of the first run:

Output of the second run:

PS: The editor of this form sucks. I can't paste code without loosing indentation.