I am trying to first create a file in one container and read that file from the other container. The docker-compose.yml looks like below:
web-api:
...
volumes:
...
- ./cap:/opt/cap/src/cap
cap-client:
...
volumes:
- ./cap:/opt/cap/src/cap
I am able to do the write and read operation on my machine but I am getting the permission denied error when trying to write a file in /opt/cap/src/cap/token.env
.
What I am missing here?
I am suspecting either I am not doing the shared volume config correctly or it is related to user permissions.
In the pipeline I geuss you want to use something like artifacts instead. Personally I never run docker-compose up -d
in the pipeline but make use of GitHub services instead.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.