I have the following problem. For some reason the checked-out directory is not or not fully mounted. The output
ls -all (Test) contains all files. Most of the files are missing when I run the output in my Docker container (Test2).
Does anyone have the same problems or can tell me what I’m doing wrong?
name: "Continuous Integration" on: pull_request: types: [opened, synchronize] jobs: pre: runs-on: self-hosted container: image: docker/compose options: "-v \"/home/aubiplus/actions-runner/_work\":\"/var/www/stack\":ro,shared" steps: - name: "Container prerequisites" run: | apk add --no-cache git - name: "Checkout Project" uses: actions/checkout@v2 with: clean: false - name: "Test" run: | ls -la /__w/stack/stack - name: "Run [docker-compose build]" run: | docker-compose --log-level INFO up -d --build - name: "Test2" run: | docker-compose exec -T php sh -c "ls -all /var/www/stack"
version: '3' services: php: container_name: stack_php_1 build: ./docker/php networks: - development volumes: - "phpsocket:/run/php" environment: - TZ=Europe/Berlin networks: development: volumes: phpsocket: