Unable to install encodings when building docker image on windows
Dockerfile
FROM alpine:3.10
RUN apk install encodings
Result on Linux is fine. But on Windows the build fails.
cmd output
docker build .
Sending build context to Docker daemon 4.096kB
Step 1/2 : FROM alpine:3.10
---> b7b28af77ffe
Step 2/2 : RUN apk add encodings
---> Running in b29d5dd00f1a
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/1) Installing encodings (1.0.4-r1)
ERROR: Failed to create usr/share/fonts/encodings/microsoft-cp1251.enc.gz: No error information
ERROR: encodings-1.0.4-r1: BAD signature
1 error; 6 MiB in 14 packages
The command '/bin/sh -c apk add encodings' returned a non-zero code: 1
Docker version 18.09.1, build 4c52b90 Windows 10 Professional 64-bit