No network connection on alpine:edge on raspberry pi
When i use alpine:edge on my raspberry pi (version 4) for php 7.4, it cannot access the network and the date shows some really weird values.
Kernel on the Raspberry PI:
root@raspberry2:/home/pi# uname -a
Linux raspberry2 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
Version of the alpine image:
root@raspberry2:/home/pi# docker pull alpine:edge
edge: Pulling from library/alpine
Digest: sha256:3e92a8388546f6b15943678d323afdbbf1d950368264e0317b45e469dfa81d53
Status: Image is up to date for alpine:edge
docker.io/library/alpine:edge
Ping fails:
root@raspberry2:/home/pi# docker run --rm alpine:edge ping 8.8.8.8
ping: clock_gettime(MONOTONIC) failed
PING 8.8.8.8 (8.8.8.8): 56 data bytes
apk also fails:
root@raspberry2:/home/pi# docker run --rm alpine:edge apk add --no-cache curl
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz: temporary error (try again later)
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
curl (missing):
required by: world[curl]
Date is wrong:
root@raspberry2:/home/pi# docker run --rm alpine:edge date
Sun Jan 0 00:100:4174038 1900
Timestamp:
root@raspberry2:/home/pi# docker run --rm alpine:edge date +%s
187882143048
Test timestamps:
for i in $(seq 1 10); do date +%s; sleep 1; done
187886587160
187885657368
187886570776
187886288152
187882630424
187880373528
187883699480
187883957528
187883683096
187881856280
With the previous version (I don't know the correct sha256) date and network connections work:
docker run --rm alpine:edge@sha256:9e911084d6764835ad58920aa50df63c679bdae9379ee62a458b8bfd5b2fbb67 date
Tue Nov 10 00:24:21 UTC 2020
Edited by Andreas Treichel