You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using volumes to bind mount non-existing source directories, the directories are not automatically created in docker-compose v2.29.3 in Bitbucket Pipelines. According to the docker volumes documentation, when using the --volumes flag, the directories should be created (I can confirm this was the case with the v2.29.2). Though the documentation is about Docker CLI, I imagine this behaviour should extend to docker-compose files since, as mentioned before, this was the behaviour with v2.29.2.
pipelines:
default:
- step:
name: Bind mount test
services:
- docker
script:
- echo "Installing Docker Compose v2"
- source ./bin/install-docker-compose-v2.sh
- docker info
- docker compose version
- docker compose up
The error you get will be:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /opt/atlassian/pipelines/agent/build/to-be-created-directory
Also note that I only notice this behaviour in Bitbucket Pipelines. I am not able to reproduce this issue when running docker-compose locally on a Ubuntu system.
The text was updated successfully, but these errors were encountered:
Description
When using
volumes
to bind mount non-existing source directories, the directories are not automatically created in docker-compose v2.29.3 in Bitbucket Pipelines. According to the docker volumes documentation, when using the--volumes
flag, the directories should be created (I can confirm this was the case with thev2.29.2
). Though the documentation is about Docker CLI, I imagine this behaviour should extend to docker-compose files since, as mentioned before, this was the behaviour withv2.29.2
.Steps To Reproduce
Consider this docker-compose file:
This
bitbucket.yml
file:The error you get will be:
Compose Version
Docker Environment
Anything else?
Also note that I only notice this behaviour in Bitbucket Pipelines. I am not able to reproduce this issue when running
docker-compose
locally on a Ubuntu system.The text was updated successfully, but these errors were encountered: