I'm running a pipeline that requires a docker container where I need to override the docker entrypoint. I've tested this locally and it works fine, but doesn't seem to work in the pipeline:
image: python:3.6
pipelines:
default:
- step:
caches:
- docker
script:
- docker run -d -p 8000:8000 --name dynamodb --entrypoint java amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb -inMemory
- curl http://localhost:8000
services:
- docker
<span> % Total % Received % Xferd Average Speed Time Time Time Current</span><span> Dload Upload Total Spent Left Speed</span><span> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0</span><span> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0</span><span>curl: (56) Recv failure: Connection reset by peer</span> <span>curl <a href="http://localhost:8000/" target="_blank" rel="nofollow noopener noreferrer">http://localhost:8000</a></span>
I've tried with both localhost and dynamodb in the curl request. Is that port restricted? Why doesn't this work?