I’m using CircleCi 2.0 and am using the docker executor type. I have a basic ubuntu container I’m using as my build environment image. In that I’m spinning up a new nginx container and exposing port 80, but I cannot connect to the docker container from the primary container. Is there anything I need to specify. Here’s how I’m spinning up my docker container (from inside the ubuntu docker container).
docker run -d -p 80:80 $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$CIRCLE_PROJECT_REPONAME:$CIRCLE_SHA1
The container deploys fine. The only issue is the fact that I can’t test it before deploying.