Unable to build docker image based on node:4.2.2-slim


#1

Our project is setup to use the Mac environment, due to using Xcode and all, which works fine, but the additional step of building our server component has started failing recently.

Our server component is built on top of the node:4.2.2-slim image from docker, and when we run “docker build .” we get the following output:

Sending build context to Docker daemon 77.82 kB
Step 1 : FROM node:4.2.2-slim
Get https://registry-1.docker.io/v2/library/node/manifests/4.2.2-slim: read tcp 10.0.2.15:46946->52.45.33.149:443: read: connection reset by peer

This same command works fine on our local machines, but fails every time on the CircleCI Mac server currently.

Accessing the CircleCI machine and running “docker pull node:4.2.2-slim” also fails, however “docker pull node:4.2.2” works… Quite confused right now. Any ideas?

Dockerfile:

FROM node:4.2.2-slim

ADD ./ /app
WORKDIR /app

RUN rm -rf node_modules && npm install

EXPOSE 3000:3000
ENV PORT 3000

CMD [“node”, “server.js”]


#2