-
Reboot the service.
sudo systemctl restart docker.service
-
Try "hello-world".
docker pull "hello-world" docker run --rm hello-world
-
Check time stamp of the host.
date
-
Check ntp (time sync) of the container.
docker run --rm alpine date
If not synced, try.
docker run --rm --privileged alpine date docker run --rm --privileged alpine apk update
-
Try other network.
docker run --rm --network=host alpine apk update
$ docker run --rm alpine apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/armhf/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/armhf/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/community: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: No such file or directory
2 errors; 15 distinct packages available
$ # Time is out of sync
$ docker run --rm alpine date
Sun Jan 0 00:00:00 1900