Getting this error when running docker-compose with a setup_remote_docker step in config.yml.
^@^@Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/app/docker-entrypoint.sh\": stat /app/docker-entrypoint.sh: no such file or directory"
docker-compose.yml:
version: '3'
services:
web:
build: .
ports:
- "80:8080"
volumes:
- .:/app
Dockerfile:
FROM gcr.io/google-appengine/python
[... omitted lines ...]
COPY . /app
WORKDIR /app
ENTRYPOINT ["/app/docker-entrypoint.sh"]
Any ideas?
Can you post your .circleci/config.yml file as well? It’ll help with determining what might be occurring. Also if your build is public and link to the failed build will help too.
Sure, here is the relevant part:
jobs:
test:
docker:
- image: google/cloud-sdk:slim
working_directory: ~/app
steps:
- checkout
- run:
name: Update submodule
command: |
git submodule sync
git submodule update --init
- setup_remote_docker
- run:
name: Install Docker client
command: |
set -x
VER="18.06.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- run:
name: Install Docker Compose
command: |
set -x
VER="1.22.0"
curl -L https://github.com/docker/compose/releases/download/$VER/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
- run:
name: Docker Compose up
command: docker-compose up -d
- run:
name: Run tests
command: docker-compose exec web pytest --junitxml=reports/pytest/results.xml
- store_test_results:
path: reports/pytest
Also, if it helps - here is the tail of the ‘Docker Compose up’ step.
Step 9/9 : ENTRYPOINT /app/docker-entrypoint.sh
---> Running in 385752fcda1a
---> 446c628f839a
Removing intermediate container 385752fcda1a
Successfully built 446c628f839a
Successfully tagged api_web:latest
WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating api_web_1 ...
ERROR: for api_web_1 Cannot start service web: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/app/docker-entrypoint.sh\": stat /app/docker-entrypoint.sh: no such file or directory"
ERROR: for web Cannot start service web: oci runtime error: container_linux.go:265: starting container process caused "exec: \"/app/docker-entrypoint.sh\": stat /app/docker-entrypoint.sh: no such file or directory"
ERROR: Encountered errors while bringing up the project.
Exited with code 1