Description
https://github.com/dockerfile/nginx/blob/master/Dockerfile
is not working ..
Step 2 : RUN add-apt-repository -y ppa:nginx/stable && apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* && echo "\ndaemon off;" >> /etc/nginx/nginx.conf && chown -R www-data:www-data /var/lib/nginx
---> Running in 7e953f0234fc
gpg: keyring /tmp/tmp8mtqiiv2/secring.gpg' created gpg: keyring
/tmp/tmp8mtqiiv2/pubring.gpg' created
gpg: requesting key C300EE8C from hkp server keyserver.ubuntu.com
gpgkeys: key 8B3981E7A6852F782CC4951600A6F0A3C300EE8C can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://ppa.launchpad.net trusty InRelease [15.4 kB]
Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:4 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:5 http://archive.ubuntu.com trusty Release [58.5 kB]
Ign http://ppa.launchpad.net trusty InRelease
Get:6 http://ppa.launchpad.net trusty/main amd64 Packages [2050 B]
Get:7 http://archive.ubuntu.com trusty-updates/main Sources [348 kB]
Get:8 http://archive.ubuntu.com trusty-updates/restricted Sources [5217 B]
Get:9 http://archive.ubuntu.com trusty-updates/universe Sources [197 kB]
Get:10 http://archive.ubuntu.com trusty-updates/main amd64 Packages [979 kB]
Get:11 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [23.5 kB]
Get:12 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [467 kB]
Get:13 http://archive.ubuntu.com trusty-security/main Sources [148 kB]
Get:14 http://archive.ubuntu.com trusty-security/restricted Sources [3920 B]
Get:15 http://archive.ubuntu.com trusty-security/universe Sources [43.2 kB]
Get:16 http://archive.ubuntu.com trusty-security/multiverse Sources [2544 B]
Get:17 http://archive.ubuntu.com trusty-security/main amd64 Packages [618 kB]
Get:18 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [20.2 kB]
Get:19 http://archive.ubuntu.com trusty-security/universe amd64 Packages [169 kB]
Get:20 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [4857 B]
Get:21 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:22 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:23 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:24 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:25 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:26 http://archive.ubuntu.com trusty/restricted amd64 Packages [13.0 kB]
Fetched 21.8 MB in 44s (491 kB/s)
Reading package lists...
W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 00A6F0A3C300EE8C
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
fontconfig-config fonts-dejavu-core geoip-database libfontconfig1
libfreetype6 libgd3 libgeoip1 libjbig0 libjpeg-turbo8 libjpeg8 libtiff5
libvpx1 libxpm4 libxslt1.1 nginx-common nginx-full
Suggested packages:
libgd-tools geoip-bin fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
fontconfig-config fonts-dejavu-core geoip-database libfontconfig1
libfreetype6 libgd3 libgeoip1 libjbig0 libjpeg-turbo8 libjpeg8 libtiff5
libvpx1 libxpm4 libxslt1.1 nginx nginx-common nginx-full
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 4433 kB of archives.
After this operation, 14.6 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
nginx-common nginx-full nginx
E: There are problems and -y was used without --force-yes
The command '/bin/sh -c add-apt-repository -y ppa:nginx/stable && apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/* && echo "\ndaemon off;" >> /etc/nginx/nginx.conf && chown -R www-data:www-data /var/lib/nginx' returned a non-zero code: 100
rajrajen$