J'essaie de mettre à jour un conteneur Ubuntu avec un fichier docker.
RUN apt-get update -y
Mais je reçois l'erreur ci-dessous.
E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 9h 14min 10s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 9h 14min 16s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 9h 14min 35s). Updates for this repository will not be applied.
J'ai vérifié d'autres solutions au même problème, comme ajouter Acquire::Check-Valid-Until=falseà apt-get comme ci-dessous
RUN apt-get -o Acquire::Check-Valid-Until="false" update -y
Ce qui précède échoue également.