Skip to content

Volume mounts are not working on Gitlab CI #4137

Answered by bsideup
shomeier asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @shomeier,

For the volume binds to work, you need to make sure that tests' file system matches Docker's.

See https://www.testcontainers.org/supported_docker_environment/continuous_integration/dind_patterns/

Also, have you considered using the copy API instead of mounting files? It is generally preferred and recommended, as it works with any Docker, not only with local one

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@shomeier
Comment options

Answer selected by shomeier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants