react-native-community / docker-android

Android Docker Image for React Native and common android development.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodesource causes apt update fails on the latest Docker Hub image

HackingGate opened this issue · comments

commented

Error message

Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification.
reactnativecommunity/react-native-android log
docker run -it reactnativecommunity/react-native-android
Unable to find image 'reactnativecommunity/react-native-android:latest' locally
latest: Pulling from reactnativecommunity/react-native-android
35807b77a593: Pull complete 
69a63121741f: Pull complete 
250ee210abe8: Pull complete 
b5256c97160c: Pull complete 
1165384f1d4a: Pull complete 
Digest: sha256:d69291a9decac116e8db3235ca064716d8fa50b4d5967d7aafd576eda3702204
Status: Downloaded newer image for reactnativecommunity/react-native-android:latest
root@76a74b21dc67:/# apt update
Ign:1 https://deb.nodesource.com/node_14.x focal InRelease
Err:2 https://deb.nodesource.com/node_14.x focal Release                                                
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate.  Could not handshake: Error in the certificate verification. [IP: 60.87.6.201 443]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                               
Get:4 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]                                         
Get:5 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1135 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [581 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [795 kB]  
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]           
Get:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1082 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1581 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [632 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.3 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6310 B]
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Reading package lists... Done                    
E: The repository 'https://deb.nodesource.com/node_14.x focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
reactnativecommunity/react-native-android:4 log
$ docker run -it reactnativecommunity/react-native-android:4
Unable to find image 'reactnativecommunity/react-native-android:4' locally
4: Pulling from reactnativecommunity/react-native-android
35807b77a593: Already exists 
ef13b9bf7a67: Pull complete 
d4e36dad221c: Pull complete 
0f2298aa614b: Pull complete 
bb0c91ac4a3e: Pull complete 
Digest: sha256:44abaabcacc3ecda22129560fc09f3f6bb38dd690e2e0c557cb52cf18d5b82a0
Status: Downloaded newer image for reactnativecommunity/react-native-android:4
root@faa44ab5b73f:/# apt update
Get:1 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
Get:2 https://deb.nodesource.com/node_14.x focal/main amd64 Packages [770 B]                              
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]   
Get:4 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [795 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1135 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]     
Get:10 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [581 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]                
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]           
Get:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1581 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1082 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [632 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.3 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6310 B]
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Fetched 19.3 MB in 5s (3801 kB/s)                      
Reading package lists... Done
Building dependency tree       
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.
$ docker images
REPOSITORY                                  TAG       IMAGE ID       CREATED       SIZE
reactnativecommunity/react-native-android   4         93697e42e613   5 days ago    11.3GB
reactnativecommunity/react-native-android   latest    f934999c34dd   2 weeks ago   11.3GB

On docker hub https://hub.docker.com/r/reactnativecommunity/react-native-android/tags.
Tag latest is not pointing version v4.2.
Make v4.2 the latest will fix .

Related issue nodesource/distributions#1266

fixed on master.