Hi there, let me start off by describing the issue I am having and then I’ll paste config files and error outputs.
I am running several dockers inside the CircleCI Linux VM when configured with machine: true
and I am building and then running a docker inside and running the docker is always failing with the following error message
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH".
Exited with code 127
I’ve tried these docker commands locally on my laptop and they’re working fine, though I believe there might be something “special” about CircleCi’s environment and I’m not able to wrap my head around this.
Here’s the circleci job from my config.yml
test-performance:
machine: true
working_directory: ~/repo
steps:
- checkout
- run: sudo modprobe ifb numifbs=1
- run: docker pull sitespeedio/sitespeed.io:8.2.2
- run: docker pull nginx:1.15.2-alpine
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm run build
- run: docker build --rm -f Dockerfile -t github-battle:latest .
- run: docker run --rm --name github-battle -d -p 8080:8080 github-battle:latest
- run: docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:8.2.2 --summary-detail true http://host.docker.internal:8080/
- run: docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:8.2.2 --summary-detail true http://host.docker.internal:8080/battle
- run: docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:8.2.2 --summary-detail true http://host.docker.internal:8080/popular
- run: docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:8.2.2 --summary-detail true http://host.docker.internal:8080/battle/results?playerOneName=tylermcginnis&playerTwoName=ryanflorence
- run: docker container stop github-battle
It should run fine except for when it executes line 20
- run: docker run --rm --name github-battle -d -p 8080:8080 github-battle:latest
This is the full output of the error
#!/bin/bash -eo pipefail
docker run --rm --name github-battle -d -p 8080:8080 github-battle:latest
37551b458cd897e54457ddf9adf62f5a4396a5a2f55a1dbc7347e01b786640a0
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container
process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH".
Exited with code 127
Any help is greatly appreciated, I am not sure what the error is except that the file cannot be found, though the file “docker-entrypoint.sh” should be there in the working directory ~/repo
so not sure why it is referencing $PATH
here.
Thanks for any help I can get.