gliderlabs / gliderlabs/docker-alpine

Protocol error installing dependencies

Open
#462 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
5.7k
Forks
530
PR merge metrics
No merged PRs in 30d

Description

Using the following Dockerfile:
```
FROM alpine
RUN apk --no-cache add git
```

Executing docker build:
```sh
➜ docker build .
```

Results in the following errors:
```sh
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM alpine
---> 196d12cf6ab1
Step 2/2 : RUN apk --no-cache add git
---> Running in be7e81141162
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
(1/7) Installing ca-certificates (20171114-r3)
(2/7) Installing nghttp2-libs (1.32.0-r0)
(3/7) Installing libssh2 (1.8.0-r3)
(4/7) Installing libcurl (7.61.1-r1)
ERROR: libcurl-7.61.1-r1: Protocol error
(5/7) Installing expat (2.2.5-r0)
(6/7) Installing pcre2 (10.31-r0)
(7/7) Installing git (2.18.1-r0)
ERROR: pcre2-10.31-r0: Protocol error
Executing busybox-1.28.4-r1.trigger
Executing ca-certificates-20171114-r3.trigger
2 errors; 18 MiB in 18 packages
The command '/bin/sh -c apk --no-cache add git' returned a non-zero code: 2
```

Docker image details:
```sh
➜ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
alpine latest 196d12cf6ab1 2 months ago 4.41MB
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.