I just got a Raspberry pi 4 with 8GB and a SD. I ran all the updates and went directly to install docker and discovered that many images were randomly failing. I narrowed it down to the alpine:latest image and the date function going bananas
pi@raspberrypi:~ $ uname -a Linux raspberrypi 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l GNU/Linux pi@raspberrypi:~ $ docker run --rm alpine:3.12 ping 188.8.131.52 PING 184.108.40.206 (220.127.116.11): 56 data bytes 64 bytes from 18.104.22.168: seq=0 ttl=111 time=31.132 ms 64 bytes from 22.214.171.124: seq=1 ttl=110 time=112.076 ms ^C --- 126.96.36.199 ping statistics --- 3 packets transmitted, 2 packets received, 33% packet loss round-trip min/avg/max = 31.132/71.604/112.076 ms pi@raspberrypi:~ $ docker run --rm alpine:latest ping 188.8.131.52 PING 184.108.40.206 (220.127.116.11): 56 data bytes ping: clock_gettime(MONOTONIC) failed
It looks that it works with 3.12 but not in latest.
Any ideas? I just bought the raspi so maybe I didn't set up docker well?
pi@raspberrypi:/usr/bin $ docker run --rm alpine:latest date Sun Jan 0 00:100:4174038 1900 pi@raspberrypi:/usr/bin $ docker run --rm alpine:3.12 date Sun Feb 7 20:33:53 UTC 2021
Looks like date fails so everything else (naturally) fails.
pi@raspberrypi:/etc/apt/sources.list.d $ cat docker.list deb [arch=armhf] https://download.docker.com/linux/raspbian buster stable pi@raspberrypi:/etc/apt/sources.list.d $ lsb_release -cs buster
I already tried to uninstall and reinstall docker without luck. Any ideas? Many images keep failing which renders the raspi kinda useless for my use case since I wanted to do everything with containers.