docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

Intermittent error "Protocol error"

Open iamnewspecies opened this issue 7 years ago • 0 comments

I am getting the following error. It is not happening every single time though. ERROR: http-parser-2.7.1-r1: Protocol error

docker-images harsharanga$ docker build -t jkl .
Sending build context to Docker daemon  6.844MB
Step 1/6 : FROM alpine:3.7
 ---> 34ea7509dcad
Step 2/6 : WORKDIR /app
 ---> Using cache
 ---> 6b19b2b9f7a8
Step 3/6 : COPY . /app
 ---> 3b04c86f9cec
Step 4/6 : RUN apk add nodejs
 ---> Running in 34cb43b61881
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/10) Installing ca-certificates (20171114-r0)
(2/10) Installing nodejs-npm (8.9.3-r1)
(3/10) Installing c-ares (1.13.0-r0)
(4/10) Installing libcrypto1.0 (1.0.2p-r0)
(5/10) Installing libgcc (6.4.0-r5)
(6/10) Installing http-parser (2.7.1-r1)
ERROR: http-parser-2.7.1-r1: Protocol error
(7/10) Installing libssl1.0 (1.0.2p-r0)
(8/10) Installing libstdc++ (6.4.0-r5)
(9/10) Installing libuv (1.17.0-r0)
(10/10) Installing nodejs (8.9.3-r1)
Executing busybox-1.27.2-r11.trigger
Executing ca-certificates-20171114-r0.trigger
1 error; 61 MiB in 22 packages
The command '/bin/sh -c apk add nodejs' returned a non-zero code: 1

My DcokerFile looks like this

FROM alpine:3.7

# Set the working directory to /app
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . /app

# Install any needed packages specified in requirements.txt
RUN apk add nodejs

# Make port 80 available to the world outside this container
EXPOSE 3000

# Define environment variable
#ENV NAME World

# Run app.py when the container launches
CMD [ "ls", "./app" ]

iamnewspecies avatar Oct 09 '18 12:10 iamnewspecies