Docker container not starting

In my job, I have:

docker:
      - image: circleci/postgres:latest
      - image: circleci/redis:latest

When the build runs, the Redis container starts fine (the step shows up in UI “Container circleci/redis:latest”). However the Postgres container, it’s as if it’s skipping over it completely. Nothing shows up in UI to start the container.

I tried different versions of circleci/postgres, official postgres image, and event MySQL and same result.

The “Spin Up Environment” step succeeds and it is downloading both images. For some reason it’s not spinning up the Postgres container.

Any ideas what could cause this? Thank you

I fixed it by changing this:

executor:
      name: node/default
      tag: "12.16"
docker: 
  - image: circleci/postgres:11.7
  - image: circleci/redis:5.0.4

to this:

docker: 
  - image: circleci/node:12.6
  - image: circleci/postgres:11.7
  - image: circleci/redis:5.0.4

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.