Ubuntu 20.04.6 LTS: Can't run web server in docker container (phpdockerio/php:8.1-fpm)

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
MakeTopSite
Posts: 125
Joined: 2021-01-20 08:44
Has thanked: 10 times
Been thanked: 3 times

Ubuntu 20.04.6 LTS: Can't run web server in docker container (phpdockerio/php:8.1-fpm)

#1 Post by MakeTopSite »

Code: Select all

> [php-fpm 9/9] RUN apt-get update && apt-get upgrade -y &&     apt-get install -y nodejs  &&     npm install -g npm:        
3.102 Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease
3.102 Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
3.179 Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
3.200 Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
3.504 Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
3.994 Reading package lists...
4.739 W: http://ppa.launchpad.net/ondrej/php/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
4.739 E: Release file for http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease is not valid yet (invalid for another 1h 24min 35s). Updates for this repository will not be applied.
4.739 E: Release file for http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 1h 25min 47s). Updates for this repository will not be applied.
------
failed to solve: process "/bin/sh -c apt-get update && apt-get upgrade -y &&     apt-get install -y nodejs  &&     npm install -g npm" did not complete successfully: exit code: 100

There was no problem until today. Could it please be caused by wrong computer time ?

User avatar
ruwolf
Posts: 876
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 78 times
Been thanked: 62 times

Re: Ubuntu 20.04.6 LTS: Can't run web server in docker container (phpdockerio/php:8.1-fpm)

#2 Post by ruwolf »

I guess it can be, if your time is lower than time of release file, because InRelease file contains date and time [but I am not expert for release file format and its (in)validity].

MakeTopSite
Posts: 125
Joined: 2021-01-20 08:44
Has thanked: 10 times
Been thanked: 3 times

[SOLVED ]Re: Ubuntu 20.04.6 LTS: Can't run web server in docker container (phpdockerio/php:8.1-fpm)

#3 Post by MakeTopSite »

solved - ntpd was blocked by firewall

Post Reply