Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

trying to connect to a docker container in the pipeline

daudt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 9, 2018

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
curl http://localhost:8000 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (56) Recv failure: Connection reset by peer 

I've tried with both localhost and dynamodb in the curl request. Is that port restricted? Why doesn't this work? 

1 answer

0 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 20, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events