1:下载基础镜像:

  1. [root@docker nginx]# docker pull centos:6
  2. 6: Pulling from library/centos
  3. ff50d722b382: Pull complete
  4. Digest: sha256:dec8f471302de43f4cfcf82f56d99a5227b5ea1aa6d02fa56344986e1f4610e7
  5. Status: Downloaded newer image for centos:6
  6. [root@docker nginx]#

2:检查本地dockers镜像

  1. [root@docker nginx]# docker images |grep centos
  2. centos 6 d0957ffdf8a2 9 months ago 194MB
  3. centos latest 9f38484d220f 9 months ago 202MB
  4. [root@docker nginx]#

3:下载nginx源码

http://nginx.org/en/download.html
image.png
[root@docker nginx]# wget http://nginx.org/download/nginx-1.14.2.tar.gz

4:编写Dockerfile文件

  1. FROM centos:6
  2. RUN yum install -y gcc gcc-c++ make openssl-devel pcre-devel wget
  3. WORKDIR /tmp
  4. RUN wget http://nginx.org/download/nginx-1.14.0.tar.gz
  5. RUN tar -zxf nginx-1.14.0.tar.gz \
  6. && cd nginx-1.14.0 \
  7. && ./configure --prefix=/usr/local/nginx \
  8. && make \
  9. && make install
  10. COPY nginx.conf /usr/local/nginx/conf
  11. EXPOSE 80
  12. CMD ["/usr/local/nginx/sbin/nginx","-g","daemon off;"]

5:ngin镜像在线制作

  1. [root@docker nginx]# ll
  2. total 8
  3. -rw-r--r--. 1 root root 393 Dec 30 13:34 Dockerfile
  4. -rw-r--r--. 1 root root 2471 Dec 30 13:44 nginx.conf
  5. [root@docker nginx]# cat Dockerfile
  6. FROM centos:6
  7. RUN yum install -y gcc gcc-c++ make openssl-devel pcre-devel wget
  8. WORKDIR /tmp
  9. RUN wget http://nginx.org/download/nginx-1.14.2.tar.gz
  10. RUN tar -zxf nginx-1.14.2.tar.gz \
  11. && cd nginx-1.14.2 \
  12. && ./configure --prefix=/usr/local/nginx \
  13. && make \
  14. && make install
  15. COPY nginx.conf /usr/local/nginx/conf
  16. EXPOSE 80
  17. CMD ["/usr/local/nginx/sbin/nginx","-g","daemon off;"]
  18. [root@docker nginx]# docker build -t nginx:v1 .
  19. Sending build context to Docker daemon 5.12kB
  20. Step 1/8 : FROM centos:6
  21. ---> d0957ffdf8a2
  22. Step 2/8 : RUN yum install -y gcc gcc-c++ make openssl-devel pcre-devel wget
  23. ---> Running in df1db1c4c2f3
  24. Loaded plugins: fastestmirror, ovl
  25. Setting up Install Process
  26. Package 1:make-3.81-23.el6.x86_64 already installed and latest version
  27. Resolving Dependencies
  28. --> Running transaction check
  29. ---> Package gcc.x86_64 0:4.4.7-23.el6 will be installed
  30. --> Processing Dependency: libgomp = 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64
  31. --> Processing Dependency: cpp = 4.4.7-23.el6 for package: gcc-4.4.7-23.el6.x86_64
  32. --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-23.el6.x86_64
  33. --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-23.el6.x86_64
  34. --> Processing Dependency: libgomp.so.1()(64bit) for package: gcc-4.4.7-23.el6.x86_64
  35. ---> Package gcc-c++.x86_64 0:4.4.7-23.el6 will be installed
  36. --> Processing Dependency: libstdc++-devel = 4.4.7-23.el6 for package: gcc-c++-4.4.7-23.el6.x86_64
  37. --> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-23.el6.x86_64
  38. ---> Package openssl-devel.x86_64 0:1.0.1e-58.el6_10 will be installed
  39. --> Processing Dependency: openssl = 1.0.1e-58.el6_10 for package: openssl-devel-1.0.1e-58.el6_10.x86_64
  40. --> Processing Dependency: zlib-devel for package: openssl-devel-1.0.1e-58.el6_10.x86_64
  41. --> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-58.el6_10.x86_64
  42. ---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed
  43. ---> Package wget.x86_64 0:1.12-10.el6 will be installed
  44. --> Running transaction check
  45. ---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
  46. --> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
  47. --> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
  48. ---> Package cpp.x86_64 0:4.4.7-23.el6 will be installed
  49. ---> Package glibc-devel.x86_64 0:2.12-1.212.el6_10.3 will be installed
  50. --> Processing Dependency: glibc-headers = 2.12-1.212.el6_10.3 for package: glibc-devel-2.12-1.212.el6_10.3.x86_64
  51. --> Processing Dependency: glibc = 2.12-1.212.el6_10.3 for package: glibc-devel-2.12-1.212.el6_10.3.x86_64
  52. --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.212.el6_10.3.x86_64
  53. ---> Package krb5-devel.x86_64 0:1.10.3-65.el6 will be installed
  54. --> Processing Dependency: libkadm5(x86-64) = 1.10.3-65.el6 for package: krb5-devel-1.10.3-65.el6.x86_64
  55. --> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-65.el6.x86_64
  56. --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-65.el6.x86_64
  57. --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-65.el6.x86_64
  58. ---> Package libgomp.x86_64 0:4.4.7-23.el6 will be installed
  59. ---> Package libstdc++-devel.x86_64 0:4.4.7-23.el6 will be installed
  60. ---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
  61. ---> Package openssl.x86_64 0:1.0.1e-57.el6 will be updated
  62. ---> Package openssl.x86_64 0:1.0.1e-58.el6_10 will be an update
  63. ---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
  64. --> Running transaction check
  65. ---> Package glibc.x86_64 0:2.12-1.212.el6 will be updated
  66. --> Processing Dependency: glibc = 2.12-1.212.el6 for package: glibc-common-2.12-1.212.el6.x86_64
  67. ---> Package glibc.x86_64 0:2.12-1.212.el6_10.3 will be an update
  68. ---> Package glibc-headers.x86_64 0:2.12-1.212.el6_10.3 will be installed
  69. --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.212.el6_10.3.x86_64
  70. --> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.212.el6_10.3.x86_64
  71. ---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed
  72. ---> Package libcom_err-devel.x86_64 0:1.41.12-24.el6 will be installed
  73. ---> Package libkadm5.x86_64 0:1.10.3-65.el6 will be installed
  74. ---> Package libselinux-devel.x86_64 0:2.0.94-7.el6 will be installed
  75. --> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-devel-2.0.94-7.el6.x86_64
  76. --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0.94-7.el6.x86_64
  77. ---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
  78. --> Running transaction check
  79. ---> Package glibc-common.x86_64 0:2.12-1.212.el6 will be updated
  80. ---> Package glibc-common.x86_64 0:2.12-1.212.el6_10.3 will be an update
  81. ---> Package kernel-headers.x86_64 0:2.6.32-754.25.1.el6 will be installed
  82. ---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed
  83. --> Finished Dependency Resolution
  84. Dependencies Resolved
  85. ================================================================================
  86. Package Arch Version Repository Size
  87. ================================================================================
  88. Installing:
  89. gcc x86_64 4.4.7-23.el6 base 10 M
  90. gcc-c++ x86_64 4.4.7-23.el6 base 4.7 M
  91. openssl-devel x86_64 1.0.1e-58.el6_10 updates 1.2 M
  92. pcre-devel x86_64 7.8-7.el6 base 320 k
  93. wget x86_64 1.12-10.el6 base 484 k
  94. Installing for dependencies:
  95. cloog-ppl x86_64 0.15.7-1.2.el6 base 93 k
  96. cpp x86_64 4.4.7-23.el6 base 3.7 M
  97. glibc-devel x86_64 2.12-1.212.el6_10.3 updates 991 k
  98. glibc-headers x86_64 2.12-1.212.el6_10.3 updates 620 k
  99. kernel-headers x86_64 2.6.32-754.25.1.el6 updates 4.6 M
  100. keyutils-libs-devel x86_64 1.4-5.el6 base 29 k
  101. krb5-devel x86_64 1.10.3-65.el6 base 504 k
  102. libcom_err-devel x86_64 1.41.12-24.el6 base 33 k
  103. libgomp x86_64 4.4.7-23.el6 base 135 k
  104. libkadm5 x86_64 1.10.3-65.el6 base 143 k
  105. libselinux-devel x86_64 2.0.94-7.el6 base 137 k
  106. libsepol-devel x86_64 2.0.41-4.el6 base 64 k
  107. libstdc++-devel x86_64 4.4.7-23.el6 base 1.6 M
  108. mpfr x86_64 2.4.1-6.el6 base 157 k
  109. ppl x86_64 0.10.2-11.el6 base 1.3 M
  110. zlib-devel x86_64 1.2.3-29.el6 base 44 k
  111. Updating for dependencies:
  112. glibc x86_64 2.12-1.212.el6_10.3 updates 3.8 M
  113. glibc-common x86_64 2.12-1.212.el6_10.3 updates 14 M
  114. openssl x86_64 1.0.1e-58.el6_10 updates 1.5 M
  115. Transaction Summary
  116. ================================================================================
  117. Install 21 Package(s)
  118. Upgrade 3 Package(s)
  119. Total download size: 50 M
  120. Downloading Packages:
  121. --------------------------------------------------------------------------------
  122. Total 1.4 MB/s | 50 MB 00:35
  123. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  124. warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
  125. Importing GPG key 0xC105B9DE:
  126. Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
  127. Package: centos-release-6-10.el6.centos.12.3.x86_64 (@CentOS/6.10)
  128. From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
  129. Running rpm_check_debug
  130. Running Transaction Test
  131. Transaction Test Succeeded
  132. Running Transaction
  133. Updating : glibc-2.12-1.212.el6_10.3.x86_64 1/27
  134. Updating : glibc-common-2.12-1.212.el6_10.3.x86_64 2/27
  135. Installing : mpfr-2.4.1-6.el6.x86_64 3/27
  136. Updating : openssl-1.0.1e-58.el6_10.x86_64 4/27
  137. Installing : cpp-4.4.7-23.el6.x86_64 5/27
  138. Installing : libgomp-4.4.7-23.el6.x86_64 6/27
  139. Installing : ppl-0.10.2-11.el6.x86_64 7/27
  140. Installing : cloog-ppl-0.15.7-1.2.el6.x86_64 8/27
  141. Installing : libkadm5-1.10.3-65.el6.x86_64 9/27
  142. Installing : libsepol-devel-2.0.41-4.el6.x86_64 10/27
  143. Installing : libselinux-devel-2.0.94-7.el6.x86_64 11/27
  144. Installing : kernel-headers-2.6.32-754.25.1.el6.x86_64 12/27
  145. Installing : glibc-headers-2.12-1.212.el6_10.3.x86_64 13/27
  146. Installing : glibc-devel-2.12-1.212.el6_10.3.x86_64 14/27
  147. Installing : gcc-4.4.7-23.el6.x86_64 15/27
  148. Installing : zlib-devel-1.2.3-29.el6.x86_64 16/27
  149. Installing : keyutils-libs-devel-1.4-5.el6.x86_64 17/27
  150. Installing : libcom_err-devel-1.41.12-24.el6.x86_64 18/27
  151. Installing : krb5-devel-1.10.3-65.el6.x86_64 19/27
  152. Installing : libstdc++-devel-4.4.7-23.el6.x86_64 20/27
  153. Installing : gcc-c++-4.4.7-23.el6.x86_64 21/27
  154. Installing : openssl-devel-1.0.1e-58.el6_10.x86_64 22/27
  155. Installing : wget-1.12-10.el6.x86_64 23/27
  156. install-info: No such file or directory for /usr/share/info/wget.info.gz
  157. Installing : pcre-devel-7.8-7.el6.x86_64 24/27
  158. Cleanup : openssl-1.0.1e-57.el6.x86_64 25/27
  159. Cleanup : glibc-2.12-1.212.el6.x86_64 26/27
  160. Cleanup : glibc-common-2.12-1.212.el6.x86_64 27/27
  161. Verifying : gcc-4.4.7-23.el6.x86_64 1/27
  162. Verifying : krb5-devel-1.10.3-65.el6.x86_64 2/27
  163. Verifying : glibc-devel-2.12-1.212.el6_10.3.x86_64 3/27
  164. Verifying : libstdc++-devel-4.4.7-23.el6.x86_64 4/27
  165. Verifying : wget-1.12-10.el6.x86_64 5/27
  166. Verifying : libcom_err-devel-1.41.12-24.el6.x86_64 6/27
  167. Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 7/27
  168. Verifying : glibc-headers-2.12-1.212.el6_10.3.x86_64 8/27
  169. Verifying : mpfr-2.4.1-6.el6.x86_64 9/27
  170. Verifying : zlib-devel-1.2.3-29.el6.x86_64 10/27
  171. Verifying : glibc-common-2.12-1.212.el6_10.3.x86_64 11/27
  172. Verifying : cloog-ppl-0.15.7-1.2.el6.x86_64 12/27
  173. Verifying : libgomp-4.4.7-23.el6.x86_64 13/27
  174. Verifying : gcc-c++-4.4.7-23.el6.x86_64 14/27
  175. Verifying : openssl-1.0.1e-58.el6_10.x86_64 15/27
  176. Verifying : kernel-headers-2.6.32-754.25.1.el6.x86_64 16/27
  177. Verifying : ppl-0.10.2-11.el6.x86_64 17/27
  178. Verifying : pcre-devel-7.8-7.el6.x86_64 18/27
  179. Verifying : libsepol-devel-2.0.41-4.el6.x86_64 19/27
  180. Verifying : openssl-devel-1.0.1e-58.el6_10.x86_64 20/27
  181. Verifying : libkadm5-1.10.3-65.el6.x86_64 21/27
  182. Verifying : libselinux-devel-2.0.94-7.el6.x86_64 22/27
  183. Verifying : cpp-4.4.7-23.el6.x86_64 23/27
  184. Verifying : glibc-2.12-1.212.el6_10.3.x86_64 24/27
  185. Verifying : glibc-common-2.12-1.212.el6.x86_64 25/27
  186. Verifying : glibc-2.12-1.212.el6.x86_64 26/27
  187. Verifying : openssl-1.0.1e-57.el6.x86_64 27/27
  188. Installed:
  189. gcc.x86_64 0:4.4.7-23.el6 gcc-c++.x86_64 0:4.4.7-23.el6
  190. openssl-devel.x86_64 0:1.0.1e-58.el6_10 pcre-devel.x86_64 0:7.8-7.el6
  191. wget.x86_64 0:1.12-10.el6
  192. Dependency Installed:
  193. cloog-ppl.x86_64 0:0.15.7-1.2.el6
  194. cpp.x86_64 0:4.4.7-23.el6
  195. glibc-devel.x86_64 0:2.12-1.212.el6_10.3
  196. glibc-headers.x86_64 0:2.12-1.212.el6_10.3
  197. kernel-headers.x86_64 0:2.6.32-754.25.1.el6
  198. keyutils-libs-devel.x86_64 0:1.4-5.el6
  199. krb5-devel.x86_64 0:1.10.3-65.el6
  200. libcom_err-devel.x86_64 0:1.41.12-24.el6
  201. libgomp.x86_64 0:4.4.7-23.el6
  202. libkadm5.x86_64 0:1.10.3-65.el6
  203. libselinux-devel.x86_64 0:2.0.94-7.el6
  204. libsepol-devel.x86_64 0:2.0.41-4.el6
  205. libstdc++-devel.x86_64 0:4.4.7-23.el6
  206. mpfr.x86_64 0:2.4.1-6.el6
  207. ppl.x86_64 0:0.10.2-11.el6
  208. zlib-devel.x86_64 0:1.2.3-29.el6
  209. Dependency Updated:
  210. glibc.x86_64 0:2.12-1.212.el6_10.3 glibc-common.x86_64 0:2.12-1.212.el6_10.3
  211. openssl.x86_64 0:1.0.1e-58.el6_10
  212. Complete!
  213. Removing intermediate container df1db1c4c2f3
  214. ---> 73037eac4241
  215. Step 3/8 : WORKDIR /tmp
  216. ---> Running in 4e6079ec3739
  217. Removing intermediate container 4e6079ec3739
  218. ---> e59a8f45372e
  219. Step 4/8 : RUN wget http://nginx.org/download/nginx-1.14.2.tar.gz
  220. ---> Running in 5825b705828e
  221. --2019-12-30 05:54:35-- http://nginx.org/download/nginx-1.14.2.tar.gz
  222. Resolving nginx.org... 62.210.92.35, 95.211.80.227, 2001:1af8:4060:a004:21::e3
  223. Connecting to nginx.org|62.210.92.35|:80... connected.
  224. HTTP request sent, awaiting response... 200 OK
  225. Length: 1015384 (992K) [application/octet-stream]
  226. Saving to: `nginx-1.14.2.tar.gz'
  227. 0K .......... .......... .......... .......... .......... 5% 86.0K 11s
  228. 50K .......... .......... .......... .......... .......... 10% 47.7K 15s
  229. 100K .......... .......... .......... .......... .......... 15% 200K 11s
  230. 150K .......... .......... .......... .......... .......... 20% 42.6K 12s
  231. 200K .......... .......... .......... .......... .......... 25% 31.8K 14s
  232. 250K .......... .......... .......... .......... .......... 30% 55.8K 13s
  233. 300K .......... .......... .......... .......... .......... 35% 89.4K 11s
  234. 350K .......... .......... .......... .......... .......... 40% 57.2K 10s
  235. 400K .......... .......... .......... .......... .......... 45% 20.0K 11s
  236. 450K .......... .......... .......... .......... .......... 50% 40.3K 11s
  237. 500K .......... .......... .......... .......... .......... 55% 30.7K 10s
  238. 550K .......... .......... .......... .......... .......... 60% 23.3K 9s
  239. 600K .......... .......... .......... .......... .......... 65% 29.9K 8s
  240. 650K .......... .......... .......... .......... .......... 70% 49.3K 7s
  241. 700K .......... .......... .......... .......... .......... 75% 69.3K 6s
  242. 750K .......... .......... .......... .......... .......... 80% 70.5K 4s
  243. 800K .......... .......... .......... .......... .......... 85% 106K 3s
  244. 850K .......... .......... .......... .......... .......... 90% 92.4K 2s
  245. 900K .......... .......... .......... .......... .......... 95% 56.6K 1s
  246. 950K .......... .......... .......... .......... . 100% 78.8K=21s
  247. 2019-12-30 05:54:57 (47.2 KB/s) - `nginx-1.14.2.tar.gz' saved [1015384/1015384]
  248. Removing intermediate container 5825b705828e
  249. ---> 31eaa9fd3b69
  250. Step 5/8 : RUN tar -zxf nginx-1.14.2.tar.gz && cd nginx-1.14.2 && ./configure --prefix=/usr/local/nginx && make && make install
  251. ---> Running in aa80f37cf292
  252. checking for OS
  253. + Linux 3.10.0-957.12.1.el7.x86_64 x86_64
  254. checking for C compiler ... found
  255. + using GNU C compiler
  256. + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)
  257. checking for gcc -pipe switch ... found
  258. checking for -Wl,-E switch ... found
  259. checking for gcc builtin atomic operations ... found
  260. checking for C99 variadic macros ... found
  261. checking for gcc variadic macros ... found
  262. checking for gcc builtin 64 bit byteswap ... found
  263. checking for unistd.h ... found
  264. checking for inttypes.h ... found
  265. checking for limits.h ... found
  266. checking for sys/filio.h ... not found
  267. checking for sys/param.h ... found
  268. checking for sys/mount.h ... found
  269. checking for sys/statvfs.h ... found
  270. checking for crypt.h ... found
  271. checking for Linux specific features
  272. checking for epoll ... found
  273. checking for EPOLLRDHUP ... found
  274. checking for EPOLLEXCLUSIVE ... not found
  275. checking for O_PATH ... not found
  276. checking for sendfile() ... found
  277. checking for sendfile64() ... found
  278. checking for sys/prctl.h ... found
  279. checking for prctl(PR_SET_DUMPABLE) ... found
  280. checking for prctl(PR_SET_KEEPCAPS) ... found
  281. checking for capabilities ... found
  282. checking for crypt_r() ... found
  283. checking for sys/vfs.h ... found
  284. checking for nobody group ... found
  285. checking for poll() ... found
  286. checking for /dev/poll ... not found
  287. checking for kqueue ... not found
  288. checking for crypt() ... not found
  289. checking for crypt() in libcrypt ... found
  290. checking for F_READAHEAD ... not found
  291. checking for posix_fadvise() ... found
  292. checking for O_DIRECT ... found
  293. checking for F_NOCACHE ... not found
  294. checking for directio() ... not found
  295. checking for statfs() ... found
  296. checking for statvfs() ... found
  297. checking for dlopen() ... not found
  298. checking for dlopen() in libdl ... found
  299. checking for sched_yield() ... found
  300. checking for sched_setaffinity() ... found
  301. checking for SO_SETFIB ... not found
  302. checking for SO_REUSEPORT ... found
  303. checking for SO_ACCEPTFILTER ... not found
  304. checking for SO_BINDANY ... not found
  305. checking for IP_TRANSPARENT ... found
  306. checking for IP_BINDANY ... not found
  307. checking for IP_BIND_ADDRESS_NO_PORT ... not found
  308. checking for IP_RECVDSTADDR ... not found
  309. checking for IP_SENDSRCADDR ... not found
  310. checking for IP_PKTINFO ... found
  311. checking for IPV6_RECVPKTINFO ... found
  312. checking for TCP_DEFER_ACCEPT ... found
  313. checking for TCP_KEEPIDLE ... found
  314. checking for TCP_FASTOPEN ... not found
  315. checking for TCP_INFO ... found
  316. checking for accept4() ... found
  317. checking for eventfd() ... found
  318. checking for int size ... 4 bytes
  319. checking for long size ... 8 bytes
  320. checking for long long size ... 8 bytes
  321. checking for void * size ... 8 bytes
  322. checking for uint32_t ... found
  323. checking for uint64_t ... found
  324. checking for sig_atomic_t ... found
  325. checking for sig_atomic_t size ... 4 bytes
  326. checking for socklen_t ... found
  327. checking for in_addr_t ... found
  328. checking for in_port_t ... found
  329. checking for rlim_t ... found
  330. checking for uintptr_t ... uintptr_t found
  331. checking for system byte ordering ... little endian
  332. checking for size_t size ... 8 bytes
  333. checking for off_t size ... 8 bytes
  334. checking for time_t size ... 8 bytes
  335. checking for AF_INET6 ... found
  336. checking for setproctitle() ... not found
  337. checking for pread() ... found
  338. checking for pwrite() ... found
  339. checking for pwritev() ... found
  340. checking for sys_nerr ... found
  341. checking for localtime_r() ... found
  342. checking for clock_gettime(CLOCK_MONOTONIC) ... not found
  343. checking for clock_gettime(CLOCK_MONOTONIC) in librt ... found
  344. checking for posix_memalign() ... found
  345. checking for memalign() ... found
  346. checking for mmap(MAP_ANON|MAP_SHARED) ... found
  347. checking for mmap("/dev/zero", MAP_SHARED) ... found
  348. checking for System V shared memory ... found
  349. checking for POSIX semaphores ... not found
  350. checking for POSIX semaphores in libpthread ... found
  351. checking for struct msghdr.msg_control ... found
  352. checking for ioctl(FIONBIO) ... found
  353. checking for struct tm.tm_gmtoff ... found
  354. checking for struct dirent.d_namlen ... not found
  355. checking for struct dirent.d_type ... found
  356. checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
  357. checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
  358. checking for openat(), fstatat() ... found
  359. checking for getaddrinfo() ... found
  360. checking for PCRE library ... found
  361. checking for PCRE JIT support ... not found
  362. checking for zlib library ... found
  363. creating objs/Makefile
  364. Configuration summary
  365. + using system PCRE library
  366. + OpenSSL library is not used
  367. + using system zlib library
  368. nginx path prefix: "/usr/local/nginx"
  369. nginx binary file: "/usr/local/nginx/sbin/nginx"
  370. nginx modules path: "/usr/local/nginx/modules"
  371. nginx configuration prefix: "/usr/local/nginx/conf"
  372. nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  373. nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  374. nginx error log file: "/usr/local/nginx/logs/error.log"
  375. nginx http access log file: "/usr/local/nginx/logs/access.log"
  376. nginx http client request body temporary files: "client_body_temp"
  377. nginx http proxy temporary files: "proxy_temp"
  378. nginx http fastcgi temporary files: "fastcgi_temp"
  379. nginx http uwsgi temporary files: "uwsgi_temp"
  380. nginx http scgi temporary files: "scgi_temp"
  381. make -f objs/Makefile
  382. make[1]: Entering directory `/tmp/nginx-1.14.2'
  383. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  384. -o objs/src/core/nginx.o \
  385. src/core/nginx.c
  386. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  387. -o objs/src/core/ngx_log.o \
  388. src/core/ngx_log.c
  389. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  390. -o objs/src/core/ngx_palloc.o \
  391. src/core/ngx_palloc.c
  392. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  393. -o objs/src/core/ngx_array.o \
  394. src/core/ngx_array.c
  395. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  396. -o objs/src/core/ngx_list.o \
  397. src/core/ngx_list.c
  398. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  399. -o objs/src/core/ngx_hash.o \
  400. src/core/ngx_hash.c
  401. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  402. -o objs/src/core/ngx_buf.o \
  403. src/core/ngx_buf.c
  404. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  405. -o objs/src/core/ngx_queue.o \
  406. src/core/ngx_queue.c
  407. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  408. -o objs/src/core/ngx_output_chain.o \
  409. src/core/ngx_output_chain.c
  410. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  411. -o objs/src/core/ngx_string.o \
  412. src/core/ngx_string.c
  413. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  414. -o objs/src/core/ngx_parse.o \
  415. src/core/ngx_parse.c
  416. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  417. -o objs/src/core/ngx_parse_time.o \
  418. src/core/ngx_parse_time.c
  419. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  420. -o objs/src/core/ngx_inet.o \
  421. src/core/ngx_inet.c
  422. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  423. -o objs/src/core/ngx_file.o \
  424. src/core/ngx_file.c
  425. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  426. -o objs/src/core/ngx_crc32.o \
  427. src/core/ngx_crc32.c
  428. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  429. -o objs/src/core/ngx_murmurhash.o \
  430. src/core/ngx_murmurhash.c
  431. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  432. -o objs/src/core/ngx_md5.o \
  433. src/core/ngx_md5.c
  434. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  435. -o objs/src/core/ngx_sha1.o \
  436. src/core/ngx_sha1.c
  437. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  438. -o objs/src/core/ngx_rbtree.o \
  439. src/core/ngx_rbtree.c
  440. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  441. -o objs/src/core/ngx_radix_tree.o \
  442. src/core/ngx_radix_tree.c
  443. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  444. -o objs/src/core/ngx_slab.o \
  445. src/core/ngx_slab.c
  446. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  447. -o objs/src/core/ngx_times.o \
  448. src/core/ngx_times.c
  449. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  450. -o objs/src/core/ngx_shmtx.o \
  451. src/core/ngx_shmtx.c
  452. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  453. -o objs/src/core/ngx_connection.o \
  454. src/core/ngx_connection.c
  455. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  456. -o objs/src/core/ngx_cycle.o \
  457. src/core/ngx_cycle.c
  458. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  459. -o objs/src/core/ngx_spinlock.o \
  460. src/core/ngx_spinlock.c
  461. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  462. -o objs/src/core/ngx_rwlock.o \
  463. src/core/ngx_rwlock.c
  464. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  465. -o objs/src/core/ngx_cpuinfo.o \
  466. src/core/ngx_cpuinfo.c
  467. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  468. -o objs/src/core/ngx_conf_file.o \
  469. src/core/ngx_conf_file.c
  470. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  471. -o objs/src/core/ngx_module.o \
  472. src/core/ngx_module.c
  473. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  474. -o objs/src/core/ngx_resolver.o \
  475. src/core/ngx_resolver.c
  476. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  477. -o objs/src/core/ngx_open_file_cache.o \
  478. src/core/ngx_open_file_cache.c
  479. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  480. -o objs/src/core/ngx_crypt.o \
  481. src/core/ngx_crypt.c
  482. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  483. -o objs/src/core/ngx_proxy_protocol.o \
  484. src/core/ngx_proxy_protocol.c
  485. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  486. -o objs/src/core/ngx_syslog.o \
  487. src/core/ngx_syslog.c
  488. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  489. -o objs/src/event/ngx_event.o \
  490. src/event/ngx_event.c
  491. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  492. -o objs/src/event/ngx_event_timer.o \
  493. src/event/ngx_event_timer.c
  494. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  495. -o objs/src/event/ngx_event_posted.o \
  496. src/event/ngx_event_posted.c
  497. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  498. -o objs/src/event/ngx_event_accept.o \
  499. src/event/ngx_event_accept.c
  500. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  501. -o objs/src/event/ngx_event_connect.o \
  502. src/event/ngx_event_connect.c
  503. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  504. -o objs/src/event/ngx_event_pipe.o \
  505. src/event/ngx_event_pipe.c
  506. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  507. -o objs/src/os/unix/ngx_time.o \
  508. src/os/unix/ngx_time.c
  509. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  510. -o objs/src/os/unix/ngx_errno.o \
  511. src/os/unix/ngx_errno.c
  512. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  513. -o objs/src/os/unix/ngx_alloc.o \
  514. src/os/unix/ngx_alloc.c
  515. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  516. -o objs/src/os/unix/ngx_files.o \
  517. src/os/unix/ngx_files.c
  518. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  519. -o objs/src/os/unix/ngx_socket.o \
  520. src/os/unix/ngx_socket.c
  521. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  522. -o objs/src/os/unix/ngx_recv.o \
  523. src/os/unix/ngx_recv.c
  524. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  525. -o objs/src/os/unix/ngx_readv_chain.o \
  526. src/os/unix/ngx_readv_chain.c
  527. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  528. -o objs/src/os/unix/ngx_udp_recv.o \
  529. src/os/unix/ngx_udp_recv.c
  530. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  531. -o objs/src/os/unix/ngx_send.o \
  532. src/os/unix/ngx_send.c
  533. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  534. -o objs/src/os/unix/ngx_writev_chain.o \
  535. src/os/unix/ngx_writev_chain.c
  536. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  537. -o objs/src/os/unix/ngx_udp_send.o \
  538. src/os/unix/ngx_udp_send.c
  539. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  540. -o objs/src/os/unix/ngx_udp_sendmsg_chain.o \
  541. src/os/unix/ngx_udp_sendmsg_chain.c
  542. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  543. -o objs/src/os/unix/ngx_channel.o \
  544. src/os/unix/ngx_channel.c
  545. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  546. -o objs/src/os/unix/ngx_shmem.o \
  547. src/os/unix/ngx_shmem.c
  548. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  549. -o objs/src/os/unix/ngx_process.o \
  550. src/os/unix/ngx_process.c
  551. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  552. -o objs/src/os/unix/ngx_daemon.o \
  553. src/os/unix/ngx_daemon.c
  554. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  555. -o objs/src/os/unix/ngx_setaffinity.o \
  556. src/os/unix/ngx_setaffinity.c
  557. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  558. -o objs/src/os/unix/ngx_setproctitle.o \
  559. src/os/unix/ngx_setproctitle.c
  560. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  561. -o objs/src/os/unix/ngx_posix_init.o \
  562. src/os/unix/ngx_posix_init.c
  563. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  564. -o objs/src/os/unix/ngx_user.o \
  565. src/os/unix/ngx_user.c
  566. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  567. -o objs/src/os/unix/ngx_dlopen.o \
  568. src/os/unix/ngx_dlopen.c
  569. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  570. -o objs/src/os/unix/ngx_process_cycle.o \
  571. src/os/unix/ngx_process_cycle.c
  572. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  573. -o objs/src/os/unix/ngx_linux_init.o \
  574. src/os/unix/ngx_linux_init.c
  575. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  576. -o objs/src/event/modules/ngx_epoll_module.o \
  577. src/event/modules/ngx_epoll_module.c
  578. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  579. -o objs/src/os/unix/ngx_linux_sendfile_chain.o \
  580. src/os/unix/ngx_linux_sendfile_chain.c
  581. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  582. -o objs/src/core/ngx_regex.o \
  583. src/core/ngx_regex.c
  584. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  585. -o objs/src/http/ngx_http.o \
  586. src/http/ngx_http.c
  587. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  588. -o objs/src/http/ngx_http_core_module.o \
  589. src/http/ngx_http_core_module.c
  590. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  591. -o objs/src/http/ngx_http_special_response.o \
  592. src/http/ngx_http_special_response.c
  593. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  594. -o objs/src/http/ngx_http_request.o \
  595. src/http/ngx_http_request.c
  596. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  597. -o objs/src/http/ngx_http_parse.o \
  598. src/http/ngx_http_parse.c
  599. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  600. -o objs/src/http/modules/ngx_http_log_module.o \
  601. src/http/modules/ngx_http_log_module.c
  602. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  603. -o objs/src/http/ngx_http_request_body.o \
  604. src/http/ngx_http_request_body.c
  605. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  606. -o objs/src/http/ngx_http_variables.o \
  607. src/http/ngx_http_variables.c
  608. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  609. -o objs/src/http/ngx_http_script.o \
  610. src/http/ngx_http_script.c
  611. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  612. -o objs/src/http/ngx_http_upstream.o \
  613. src/http/ngx_http_upstream.c
  614. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  615. -o objs/src/http/ngx_http_upstream_round_robin.o \
  616. src/http/ngx_http_upstream_round_robin.c
  617. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  618. -o objs/src/http/ngx_http_file_cache.o \
  619. src/http/ngx_http_file_cache.c
  620. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  621. -o objs/src/http/ngx_http_write_filter_module.o \
  622. src/http/ngx_http_write_filter_module.c
  623. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  624. -o objs/src/http/ngx_http_header_filter_module.o \
  625. src/http/ngx_http_header_filter_module.c
  626. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  627. -o objs/src/http/modules/ngx_http_chunked_filter_module.o \
  628. src/http/modules/ngx_http_chunked_filter_module.c
  629. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  630. -o objs/src/http/modules/ngx_http_range_filter_module.o \
  631. src/http/modules/ngx_http_range_filter_module.c
  632. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  633. -o objs/src/http/modules/ngx_http_gzip_filter_module.o \
  634. src/http/modules/ngx_http_gzip_filter_module.c
  635. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  636. -o objs/src/http/ngx_http_postpone_filter_module.o \
  637. src/http/ngx_http_postpone_filter_module.c
  638. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  639. -o objs/src/http/modules/ngx_http_ssi_filter_module.o \
  640. src/http/modules/ngx_http_ssi_filter_module.c
  641. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  642. -o objs/src/http/modules/ngx_http_charset_filter_module.o \
  643. src/http/modules/ngx_http_charset_filter_module.c
  644. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  645. -o objs/src/http/modules/ngx_http_userid_filter_module.o \
  646. src/http/modules/ngx_http_userid_filter_module.c
  647. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  648. -o objs/src/http/modules/ngx_http_headers_filter_module.o \
  649. src/http/modules/ngx_http_headers_filter_module.c
  650. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  651. -o objs/src/http/ngx_http_copy_filter_module.o \
  652. src/http/ngx_http_copy_filter_module.c
  653. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  654. -o objs/src/http/modules/ngx_http_not_modified_filter_module.o \
  655. src/http/modules/ngx_http_not_modified_filter_module.c
  656. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  657. -o objs/src/http/modules/ngx_http_static_module.o \
  658. src/http/modules/ngx_http_static_module.c
  659. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  660. -o objs/src/http/modules/ngx_http_autoindex_module.o \
  661. src/http/modules/ngx_http_autoindex_module.c
  662. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  663. -o objs/src/http/modules/ngx_http_index_module.o \
  664. src/http/modules/ngx_http_index_module.c
  665. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  666. -o objs/src/http/modules/ngx_http_mirror_module.o \
  667. src/http/modules/ngx_http_mirror_module.c
  668. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  669. -o objs/src/http/modules/ngx_http_try_files_module.o \
  670. src/http/modules/ngx_http_try_files_module.c
  671. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  672. -o objs/src/http/modules/ngx_http_auth_basic_module.o \
  673. src/http/modules/ngx_http_auth_basic_module.c
  674. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  675. -o objs/src/http/modules/ngx_http_access_module.o \
  676. src/http/modules/ngx_http_access_module.c
  677. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  678. -o objs/src/http/modules/ngx_http_limit_conn_module.o \
  679. src/http/modules/ngx_http_limit_conn_module.c
  680. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  681. -o objs/src/http/modules/ngx_http_limit_req_module.o \
  682. src/http/modules/ngx_http_limit_req_module.c
  683. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  684. -o objs/src/http/modules/ngx_http_geo_module.o \
  685. src/http/modules/ngx_http_geo_module.c
  686. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  687. -o objs/src/http/modules/ngx_http_map_module.o \
  688. src/http/modules/ngx_http_map_module.c
  689. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  690. -o objs/src/http/modules/ngx_http_split_clients_module.o \
  691. src/http/modules/ngx_http_split_clients_module.c
  692. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  693. -o objs/src/http/modules/ngx_http_referer_module.o \
  694. src/http/modules/ngx_http_referer_module.c
  695. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  696. -o objs/src/http/modules/ngx_http_rewrite_module.o \
  697. src/http/modules/ngx_http_rewrite_module.c
  698. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  699. -o objs/src/http/modules/ngx_http_proxy_module.o \
  700. src/http/modules/ngx_http_proxy_module.c
  701. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  702. -o objs/src/http/modules/ngx_http_fastcgi_module.o \
  703. src/http/modules/ngx_http_fastcgi_module.c
  704. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  705. -o objs/src/http/modules/ngx_http_uwsgi_module.o \
  706. src/http/modules/ngx_http_uwsgi_module.c
  707. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  708. -o objs/src/http/modules/ngx_http_scgi_module.o \
  709. src/http/modules/ngx_http_scgi_module.c
  710. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  711. -o objs/src/http/modules/ngx_http_memcached_module.o \
  712. src/http/modules/ngx_http_memcached_module.c
  713. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  714. -o objs/src/http/modules/ngx_http_empty_gif_module.o \
  715. src/http/modules/ngx_http_empty_gif_module.c
  716. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  717. -o objs/src/http/modules/ngx_http_browser_module.o \
  718. src/http/modules/ngx_http_browser_module.c
  719. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  720. -o objs/src/http/modules/ngx_http_upstream_hash_module.o \
  721. src/http/modules/ngx_http_upstream_hash_module.c
  722. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  723. -o objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
  724. src/http/modules/ngx_http_upstream_ip_hash_module.c
  725. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  726. -o objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
  727. src/http/modules/ngx_http_upstream_least_conn_module.c
  728. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  729. -o objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
  730. src/http/modules/ngx_http_upstream_keepalive_module.c
  731. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
  732. -o objs/src/http/modules/ngx_http_upstream_zone_module.o \
  733. src/http/modules/ngx_http_upstream_zone_module.c
  734. cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
  735. -o objs/ngx_modules.o \
  736. objs/ngx_modules.c
  737. cc -o objs/nginx \
  738. objs/src/core/nginx.o \
  739. objs/src/core/ngx_log.o \
  740. objs/src/core/ngx_palloc.o \
  741. objs/src/core/ngx_array.o \
  742. objs/src/core/ngx_list.o \
  743. objs/src/core/ngx_hash.o \
  744. objs/src/core/ngx_buf.o \
  745. objs/src/core/ngx_queue.o \
  746. objs/src/core/ngx_output_chain.o \
  747. objs/src/core/ngx_string.o \
  748. objs/src/core/ngx_parse.o \
  749. objs/src/core/ngx_parse_time.o \
  750. objs/src/core/ngx_inet.o \
  751. objs/src/core/ngx_file.o \
  752. objs/src/core/ngx_crc32.o \
  753. objs/src/core/ngx_murmurhash.o \
  754. objs/src/core/ngx_md5.o \
  755. objs/src/core/ngx_sha1.o \
  756. objs/src/core/ngx_rbtree.o \
  757. objs/src/core/ngx_radix_tree.o \
  758. objs/src/core/ngx_slab.o \
  759. objs/src/core/ngx_times.o \
  760. objs/src/core/ngx_shmtx.o \
  761. objs/src/core/ngx_connection.o \
  762. objs/src/core/ngx_cycle.o \
  763. objs/src/core/ngx_spinlock.o \
  764. objs/src/core/ngx_rwlock.o \
  765. objs/src/core/ngx_cpuinfo.o \
  766. objs/src/core/ngx_conf_file.o \
  767. objs/src/core/ngx_module.o \
  768. objs/src/core/ngx_resolver.o \
  769. objs/src/core/ngx_open_file_cache.o \
  770. objs/src/core/ngx_crypt.o \
  771. objs/src/core/ngx_proxy_protocol.o \
  772. objs/src/core/ngx_syslog.o \
  773. objs/src/event/ngx_event.o \
  774. objs/src/event/ngx_event_timer.o \
  775. objs/src/event/ngx_event_posted.o \
  776. objs/src/event/ngx_event_accept.o \
  777. objs/src/event/ngx_event_connect.o \
  778. objs/src/event/ngx_event_pipe.o \
  779. objs/src/os/unix/ngx_time.o \
  780. objs/src/os/unix/ngx_errno.o \
  781. objs/src/os/unix/ngx_alloc.o \
  782. objs/src/os/unix/ngx_files.o \
  783. objs/src/os/unix/ngx_socket.o \
  784. objs/src/os/unix/ngx_recv.o \
  785. objs/src/os/unix/ngx_readv_chain.o \
  786. objs/src/os/unix/ngx_udp_recv.o \
  787. objs/src/os/unix/ngx_send.o \
  788. objs/src/os/unix/ngx_writev_chain.o \
  789. objs/src/os/unix/ngx_udp_send.o \
  790. objs/src/os/unix/ngx_udp_sendmsg_chain.o \
  791. objs/src/os/unix/ngx_channel.o \
  792. objs/src/os/unix/ngx_shmem.o \
  793. objs/src/os/unix/ngx_process.o \
  794. objs/src/os/unix/ngx_daemon.o \
  795. objs/src/os/unix/ngx_setaffinity.o \
  796. objs/src/os/unix/ngx_setproctitle.o \
  797. objs/src/os/unix/ngx_posix_init.o \
  798. objs/src/os/unix/ngx_user.o \
  799. objs/src/os/unix/ngx_dlopen.o \
  800. objs/src/os/unix/ngx_process_cycle.o \
  801. objs/src/os/unix/ngx_linux_init.o \
  802. objs/src/event/modules/ngx_epoll_module.o \
  803. objs/src/os/unix/ngx_linux_sendfile_chain.o \
  804. objs/src/core/ngx_regex.o \
  805. objs/src/http/ngx_http.o \
  806. objs/src/http/ngx_http_core_module.o \
  807. objs/src/http/ngx_http_special_response.o \
  808. objs/src/http/ngx_http_request.o \
  809. objs/src/http/ngx_http_parse.o \
  810. objs/src/http/modules/ngx_http_log_module.o \
  811. objs/src/http/ngx_http_request_body.o \
  812. objs/src/http/ngx_http_variables.o \
  813. objs/src/http/ngx_http_script.o \
  814. objs/src/http/ngx_http_upstream.o \
  815. objs/src/http/ngx_http_upstream_round_robin.o \
  816. objs/src/http/ngx_http_file_cache.o \
  817. objs/src/http/ngx_http_write_filter_module.o \
  818. objs/src/http/ngx_http_header_filter_module.o \
  819. objs/src/http/modules/ngx_http_chunked_filter_module.o \
  820. objs/src/http/modules/ngx_http_range_filter_module.o \
  821. objs/src/http/modules/ngx_http_gzip_filter_module.o \
  822. objs/src/http/ngx_http_postpone_filter_module.o \
  823. objs/src/http/modules/ngx_http_ssi_filter_module.o \
  824. objs/src/http/modules/ngx_http_charset_filter_module.o \
  825. objs/src/http/modules/ngx_http_userid_filter_module.o \
  826. objs/src/http/modules/ngx_http_headers_filter_module.o \
  827. objs/src/http/ngx_http_copy_filter_module.o \
  828. objs/src/http/modules/ngx_http_not_modified_filter_module.o \
  829. objs/src/http/modules/ngx_http_static_module.o \
  830. objs/src/http/modules/ngx_http_autoindex_module.o \
  831. objs/src/http/modules/ngx_http_index_module.o \
  832. objs/src/http/modules/ngx_http_mirror_module.o \
  833. objs/src/http/modules/ngx_http_try_files_module.o \
  834. objs/src/http/modules/ngx_http_auth_basic_module.o \
  835. objs/src/http/modules/ngx_http_access_module.o \
  836. objs/src/http/modules/ngx_http_limit_conn_module.o \
  837. objs/src/http/modules/ngx_http_limit_req_module.o \
  838. objs/src/http/modules/ngx_http_geo_module.o \
  839. objs/src/http/modules/ngx_http_map_module.o \
  840. objs/src/http/modules/ngx_http_split_clients_module.o \
  841. objs/src/http/modules/ngx_http_referer_module.o \
  842. objs/src/http/modules/ngx_http_rewrite_module.o \
  843. objs/src/http/modules/ngx_http_proxy_module.o \
  844. objs/src/http/modules/ngx_http_fastcgi_module.o \
  845. objs/src/http/modules/ngx_http_uwsgi_module.o \
  846. objs/src/http/modules/ngx_http_scgi_module.o \
  847. objs/src/http/modules/ngx_http_memcached_module.o \
  848. objs/src/http/modules/ngx_http_empty_gif_module.o \
  849. objs/src/http/modules/ngx_http_browser_module.o \
  850. objs/src/http/modules/ngx_http_upstream_hash_module.o \
  851. objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
  852. objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
  853. objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
  854. objs/src/http/modules/ngx_http_upstream_zone_module.o \
  855. objs/ngx_modules.o \
  856. -ldl -lrt -lpthread -lcrypt -lpcre -lz \
  857. -Wl,-E
  858. sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
  859. -e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
  860. -e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
  861. -e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
  862. < man/nginx.8 > objs/nginx.8
  863. make[1]: Leaving directory `/tmp/nginx-1.14.2'
  864. make -f objs/Makefile install
  865. make[1]: Entering directory `/tmp/nginx-1.14.2'
  866. test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
  867. test -d '/usr/local/nginx/sbin' \
  868. || mkdir -p '/usr/local/nginx/sbin'
  869. test ! -f '/usr/local/nginx/sbin/nginx' \
  870. || mv '/usr/local/nginx/sbin/nginx' \
  871. '/usr/local/nginx/sbin/nginx.old'
  872. cp objs/nginx '/usr/local/nginx/sbin/nginx'
  873. test -d '/usr/local/nginx/conf' \
  874. || mkdir -p '/usr/local/nginx/conf'
  875. cp conf/koi-win '/usr/local/nginx/conf'
  876. cp conf/koi-utf '/usr/local/nginx/conf'
  877. cp conf/win-utf '/usr/local/nginx/conf'
  878. test -f '/usr/local/nginx/conf/mime.types' \
  879. || cp conf/mime.types '/usr/local/nginx/conf'
  880. cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
  881. test -f '/usr/local/nginx/conf/fastcgi_params' \
  882. || cp conf/fastcgi_params '/usr/local/nginx/conf'
  883. cp conf/fastcgi_params \
  884. '/usr/local/nginx/conf/fastcgi_params.default'
  885. test -f '/usr/local/nginx/conf/fastcgi.conf' \
  886. || cp conf/fastcgi.conf '/usr/local/nginx/conf'
  887. cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
  888. test -f '/usr/local/nginx/conf/uwsgi_params' \
  889. || cp conf/uwsgi_params '/usr/local/nginx/conf'
  890. cp conf/uwsgi_params \
  891. '/usr/local/nginx/conf/uwsgi_params.default'
  892. test -f '/usr/local/nginx/conf/scgi_params' \
  893. || cp conf/scgi_params '/usr/local/nginx/conf'
  894. cp conf/scgi_params \
  895. '/usr/local/nginx/conf/scgi_params.default'
  896. test -f '/usr/local/nginx/conf/nginx.conf' \
  897. || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
  898. cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
  899. test -d '/usr/local/nginx/logs' \
  900. || mkdir -p '/usr/local/nginx/logs'
  901. test -d '/usr/local/nginx/logs' \
  902. || mkdir -p '/usr/local/nginx/logs'
  903. test -d '/usr/local/nginx/html' \
  904. || cp -R html '/usr/local/nginx'
  905. test -d '/usr/local/nginx/logs' \
  906. || mkdir -p '/usr/local/nginx/logs'
  907. make[1]: Leaving directory `/tmp/nginx-1.14.2'
  908. Removing intermediate container aa80f37cf292
  909. ---> e2a19c9de66d
  910. Step 6/8 : COPY nginx.conf /usr/local/nginx/conf
  911. ---> 40afd7eeed66
  912. Step 7/8 : EXPOSE 80
  913. ---> Running in ec5a7c8c8284
  914. Removing intermediate container ec5a7c8c8284
  915. ---> 1ca6bb121dcf
  916. Step 8/8 : CMD ["/usr/local/nginx/sbin/nginx","-g","daemon off;"]
  917. ---> Running in 0a2f8cd266a9
  918. Removing intermediate container 0a2f8cd266a9
  919. ---> 6c9d6c6a3878
  920. Successfully built 6c9d6c6a3878
  921. Successfully tagged nginx:v1
  922. [root@docker nginx]# docker images
  923. REPOSITORY TAG IMAGE ID CREATED SIZE
  924. nginx v1 6c9d6c6a3878 10 seconds ago 494MB
  925. auto-jenkins latest d83c74abb6ca 7 weeks ago 734MB
  926. docker latest cf85f29ec76f 2 months ago 216MB
  927. tomcat latest 882487b8be1d 2 months ago 507MB
  928. nginx latest 53f3fd8007f7 7 months ago 109MB
  929. centos 6 d0957ffdf8a2 9 months ago 194MB
  930. centos latest 9f38484d220f 9 months ago 202MB
  931. [root@docker nginx]#

官方nginx docker Dockerfile 制作过程:

  1. [root@docker nginx]# ll
  2. total 8
  3. -rw-r--r--. 1 root root 5037 Dec 30 16:17 Dockerfile
  4. [root@docker nginx]#
  5. [root@docker nginx]# docker build -t nginx:v1.17.6 .
  6. Sending build context to Docker daemon 6.656kB
  7. Step 1/10 : FROM debian:buster-slim
  8. buster-slim: Pulling from library/debian
  9. buster-slim: Pulling from library/debian
  10. 8ec398bc0356: Pull complete
  11. Digest: sha256:e4c1417236abc57971755ca2bfccd546cbca45b33daf66001a5addae4bf78517
  12. Status: Downloaded newer image for debian:buster-slim
  13. ---> e1af56d072b8
  14. Step 2/10 : LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
  15. ---> Running in 92695891c0c2
  16. Removing intermediate container 92695891c0c2
  17. ---> d8a02e14b02a
  18. Step 3/10 : ENV NGINX_VERSION 1.17.6
  19. ---> Running in feb563ff3a6d
  20. Removing intermediate container feb563ff3a6d
  21. ---> a62b6e9835f7
  22. Step 4/10 : ENV NJS_VERSION 0.3.7
  23. ---> Running in 0095d0efc784
  24. Removing intermediate container 0095d0efc784
  25. ---> 5c94f335c62a
  26. Step 5/10 : ENV PKG_RELEASE 1~buster
  27. ---> Running in 3dcc9ffa83bc
  28. Removing intermediate container 3dcc9ffa83bc
  29. ---> a68581dec37f
  30. Step 6/10 : RUN set -x && addgroup --system --gid 101 nginx && adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos "nginx user" --shell /bin/false --uid 101 nginx && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates && NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; found=''; for server in ha.pool.sks-keyservers.net hkp://keyserver.ubuntu.com:80 hkp://p80.pool.sks-keyservers.net:80 pgp.mit.edu ; do echo "Fetching GPG key $NGINX_GPGKEY from $server"; apt-key adv --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; apt-get remove --purge --auto-remove -y gnupg1 && rm -rf /var/lib/apt/lists/* && dpkgArch="$(dpkg --print-architecture)" && nginxPackages=" nginx=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-njs=${NGINX_VERSION}.${NJS_VERSION}-${PKG_RELEASE} " && case "$dpkgArch" in amd64|i386) echo "deb https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list && apt-get update ;; *) echo "deb-src https://nginx.org/packages/mainline/debian/ buster nginx" >> /etc/apt/sources.list.d/nginx.list && tempDir="$(mktemp -d)" && chmod 777 "$tempDir" && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get build-dep -y $nginxPackages && ( cd "$tempDir" && DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" apt-get source --compile $nginxPackages ) && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && ls -lAFh "$tempDir" && ( cd "$tempDir" && dpkg-scanpackages . > Packages ) && grep '^Package: ' "$tempDir/Packages" && echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list && apt-get -o Acquire::GzipIndexes=false update ;; esac && apt-get install --no-install-recommends --no-install-suggests -y $nginxPackages gettext-base && apt-get remove --purge --auto-remove -y ca-certificates && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list && if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove && rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi
  31. ---> Running in 8938a2bb5f21
  32. + addgroup --system --gid 101 nginx
  33. Adding group `nginx' (GID 101) ...
  34. Done.
  35. + adduser --system --disabled-login --ingroup nginx --no-create-home --home /nonexistent --gecos nginx user --shell /bin/false --uid 101 nginx
  36. Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
  37. Adding system user `nginx' (UID 101) ...
  38. Adding new user `nginx' (UID 101) with group `nginx' ...
  39. Not creating home directory `/nonexistent'.
  40. + apt-get update
  41. Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
  42. Get:1 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
  43. Get:3 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [167 kB]
  44. Get:4 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
  45. Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  46. Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
  47. Fetched 8317 kB in 4min 14s (32.7 kB/s)
  48. Reading package lists...
  49. + apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates
  50. Reading package lists...
  51. Building dependency tree...
  52. Reading state information...
  53. The following additional packages will be installed:
  54. libcurl3-gnutls libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3
  55. libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libpsl5
  56. libreadline7 librtmp1 libsasl2-2 libsasl2-modules-db libssh2-1 libssl1.1
  57. openssl readline-common
  58. Suggested packages:
  59. libpcsclite1 parcimonie xloadimage | imagemagick | eog krb5-doc krb5-user
  60. readline-doc
  61. Recommended packages:
  62. gnupg1-l10n krb5-locales publicsuffix libsasl2-modules
  63. The following NEW packages will be installed:
  64. ca-certificates gnupg1 libcurl3-gnutls libgssapi-krb5-2 libk5crypto3
  65. libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common
  66. libnghttp2-14 libpsl5 libreadline7 librtmp1 libsasl2-2 libsasl2-modules-db
  67. libssh2-1 libssl1.1 openssl readline-common
  68. 0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
  69. Need to get 5247 kB of archives.
  70. After this operation, 12.4 MB of additional disk space will be used.
  71. Get:1 http://security-cdn.debian.org/debian-security buster/updates/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1+deb10u1 [69.1 kB]
  72. Get:3 http://deb.debian.org/debian buster/main amd64 readline-common all 7.0-5 [70.6 kB]
  73. Get:4 http://deb.debian.org/debian buster/main amd64 libssl1.1 amd64 1.1.1d-0+deb10u2 [1538 kB]
  74. Get:2 http://security-cdn.debian.org/debian-security buster/updates/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1+deb10u1 [106 kB]
  75. Get:5 http://deb.debian.org/debian buster/main amd64 openssl amd64 1.1.1d-0+deb10u2 [843 kB]
  76. Get:6 http://deb.debian.org/debian buster/main amd64 ca-certificates all 20190110 [157 kB]
  77. Get:7 http://deb.debian.org/debian buster/main amd64 libkeyutils1 amd64 1.6-6 [15.0 kB]
  78. Get:8 http://deb.debian.org/debian buster/main amd64 libkrb5support0 amd64 1.17-3 [65.6 kB]
  79. Get:9 http://deb.debian.org/debian buster/main amd64 libk5crypto3 amd64 1.17-3 [121 kB]
  80. Get:10 http://deb.debian.org/debian buster/main amd64 libkrb5-3 amd64 1.17-3 [370 kB]
  81. Get:11 http://deb.debian.org/debian buster/main amd64 libgssapi-krb5-2 amd64 1.17-3 [158 kB]
  82. Get:12 http://deb.debian.org/debian buster/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u1 [89.6 kB]
  83. Get:13 http://deb.debian.org/debian buster/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u1 [225 kB]
  84. Get:14 http://deb.debian.org/debian buster/main amd64 libnghttp2-14 amd64 1.36.0-2+deb10u1 [85.0 kB]
  85. Get:15 http://deb.debian.org/debian buster/main amd64 libpsl5 amd64 0.20.2-2 [53.7 kB]
  86. Get:16 http://deb.debian.org/debian buster/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [60.5 kB]
  87. Get:17 http://deb.debian.org/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB]
  88. Get:18 http://deb.debian.org/debian buster/main amd64 libcurl3-gnutls amd64 7.64.0-4 [329 kB]
  89. Get:19 http://deb.debian.org/debian buster/main amd64 libreadline7 amd64 7.0-5 [151 kB]
  90. Get:20 http://deb.debian.org/debian buster/main amd64 gnupg1 amd64 1.4.23-1 [599 kB]
  91. debconf: delaying package configuration, since apt-utils is not installed
  92. Fetched 5247 kB in 4min 47s (18.3 kB/s)
  93. Selecting previously unselected package readline-common.
  94. (Reading database ... 6457 files and directories currently installed.)
  95. Preparing to unpack .../00-readline-common_7.0-5_all.deb ...
  96. Unpacking readline-common (7.0-5) ...
  97. Selecting previously unselected package libsasl2-modules-db:amd64.
  98. Preparing to unpack .../01-libsasl2-modules-db_2.1.27+dfsg-1+deb10u1_amd64.deb ...
  99. Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ...
  100. Selecting previously unselected package libsasl2-2:amd64.
  101. Preparing to unpack .../02-libsasl2-2_2.1.27+dfsg-1+deb10u1_amd64.deb ...
  102. Unpacking libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ...
  103. Selecting previously unselected package libssl1.1:amd64.
  104. Preparing to unpack .../03-libssl1.1_1.1.1d-0+deb10u2_amd64.deb ...
  105. Unpacking libssl1.1:amd64 (1.1.1d-0+deb10u2) ...
  106. Selecting previously unselected package openssl.
  107. Preparing to unpack .../04-openssl_1.1.1d-0+deb10u2_amd64.deb ...
  108. Unpacking openssl (1.1.1d-0+deb10u2) ...
  109. Selecting previously unselected package ca-certificates.
  110. Preparing to unpack .../05-ca-certificates_20190110_all.deb ...
  111. Unpacking ca-certificates (20190110) ...
  112. Selecting previously unselected package libkeyutils1:amd64.
  113. Preparing to unpack .../06-libkeyutils1_1.6-6_amd64.deb ...
  114. Unpacking libkeyutils1:amd64 (1.6-6) ...
  115. Selecting previously unselected package libkrb5support0:amd64.
  116. Preparing to unpack .../07-libkrb5support0_1.17-3_amd64.deb ...
  117. Unpacking libkrb5support0:amd64 (1.17-3) ...
  118. Selecting previously unselected package libk5crypto3:amd64.
  119. Preparing to unpack .../08-libk5crypto3_1.17-3_amd64.deb ...
  120. Unpacking libk5crypto3:amd64 (1.17-3) ...
  121. Selecting previously unselected package libkrb5-3:amd64.
  122. Preparing to unpack .../09-libkrb5-3_1.17-3_amd64.deb ...
  123. Unpacking libkrb5-3:amd64 (1.17-3) ...
  124. Selecting previously unselected package libgssapi-krb5-2:amd64.
  125. Preparing to unpack .../10-libgssapi-krb5-2_1.17-3_amd64.deb ...
  126. Unpacking libgssapi-krb5-2:amd64 (1.17-3) ...
  127. Selecting previously unselected package libldap-common.
  128. Preparing to unpack .../11-libldap-common_2.4.47+dfsg-3+deb10u1_all.deb ...
  129. Unpacking libldap-common (2.4.47+dfsg-3+deb10u1) ...
  130. Selecting previously unselected package libldap-2.4-2:amd64.
  131. Preparing to unpack .../12-libldap-2.4-2_2.4.47+dfsg-3+deb10u1_amd64.deb ...
  132. Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u1) ...
  133. Selecting previously unselected package libnghttp2-14:amd64.
  134. Preparing to unpack .../13-libnghttp2-14_1.36.0-2+deb10u1_amd64.deb ...
  135. Unpacking libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
  136. Selecting previously unselected package libpsl5:amd64.
  137. Preparing to unpack .../14-libpsl5_0.20.2-2_amd64.deb ...
  138. Unpacking libpsl5:amd64 (0.20.2-2) ...
  139. Selecting previously unselected package librtmp1:amd64.
  140. Preparing to unpack .../15-librtmp1_2.4+20151223.gitfa8646d.1-2_amd64.deb ...
  141. Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
  142. Selecting previously unselected package libssh2-1:amd64.
  143. Preparing to unpack .../16-libssh2-1_1.8.0-2.1_amd64.deb ...
  144. Unpacking libssh2-1:amd64 (1.8.0-2.1) ...
  145. Selecting previously unselected package libcurl3-gnutls:amd64.
  146. Preparing to unpack .../17-libcurl3-gnutls_7.64.0-4_amd64.deb ...
  147. Unpacking libcurl3-gnutls:amd64 (7.64.0-4) ...
  148. Selecting previously unselected package libreadline7:amd64.
  149. Preparing to unpack .../18-libreadline7_7.0-5_amd64.deb ...
  150. Unpacking libreadline7:amd64 (7.0-5) ...
  151. Selecting previously unselected package gnupg1.
  152. Preparing to unpack .../19-gnupg1_1.4.23-1_amd64.deb ...
  153. Unpacking gnupg1 (1.4.23-1) ...
  154. Setting up libkeyutils1:amd64 (1.6-6) ...
  155. Setting up libpsl5:amd64 (0.20.2-2) ...
  156. Setting up libssl1.1:amd64 (1.1.1d-0+deb10u2) ...
  157. debconf: unable to initialize frontend: Dialog
  158. debconf: (TERM is not set, so the dialog frontend is not usable.)
  159. debconf: falling back to frontend: Readline
  160. debconf: unable to initialize frontend: Readline
  161. debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
  162. debconf: falling back to frontend: Teletype
  163. Setting up libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
  164. Setting up libldap-common (2.4.47+dfsg-3+deb10u1) ...
  165. Setting up libkrb5support0:amd64 (1.17-3) ...
  166. Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ...
  167. Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
  168. Setting up libk5crypto3:amd64 (1.17-3) ...
  169. Setting up libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ...
  170. Setting up libssh2-1:amd64 (1.8.0-2.1) ...
  171. Setting up libkrb5-3:amd64 (1.17-3) ...
  172. Setting up openssl (1.1.1d-0+deb10u2) ...
  173. Setting up readline-common (7.0-5) ...
  174. Setting up libreadline7:amd64 (7.0-5) ...
  175. Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u1) ...
  176. Setting up ca-certificates (20190110) ...
  177. debconf: unable to initialize frontend: Dialog
  178. debconf: (TERM is not set, so the dialog frontend is not usable.)
  179. debconf: falling back to frontend: Readline
  180. debconf: unable to initialize frontend: Readline
  181. debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
  182. debconf: falling back to frontend: Teletype
  183. Updating certificates in /etc/ssl/certs...
  184. 128 added, 0 removed; done.
  185. Setting up libgssapi-krb5-2:amd64 (1.17-3) ...
  186. Setting up libcurl3-gnutls:amd64 (7.64.0-4) ...
  187. Setting up gnupg1 (1.4.23-1) ...
  188. Processing triggers for libc-bin (2.28-10) ...
  189. Processing triggers for ca-certificates (20190110) ...
  190. Updating certificates in /etc/ssl/certs...
  191. 0 added, 0 removed; done.
  192. Running hooks in /etc/ca-certificates/update.d...
  193. done.
  194. + NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
  195. + found=
  196. + echo Fetching GPG key 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 from ha.pool.sks-keyservers.net
  197. + apt-key adv --keyserver ha.pool.sks-keyservers.net --keyserver-options timeout=10 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
  198. Fetching GPG key 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 from ha.pool.sks-keyservers.net
  199. Warning: apt-key output should not be parsed (stdout is not a terminal)
  200. Executing: /tmp/apt-key-gpghome.OeS6HN2zfG/gpg.1.sh --keyserver ha.pool.sks-keyservers.net --keyserver-options timeout=10 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
  201. gpg: requesting key 7BD9BF62 from hkp server ha.pool.sks-keyservers.net
  202. gpg: key 7BD9BF62: public key "nginx signing key <signing-key@nginx.com>" imported
  203. gpg: Total number processed: 1
  204. gpg: imported: 1 (RSA: 1)
  205. + found=yes
  206. + break
  207. + test -z yes
  208. + apt-get remove --purge --auto-remove -y gnupg1
  209. Reading package lists...
  210. Building dependency tree...
  211. Reading state information...
  212. The following packages will be REMOVED:
  213. gnupg1* libcurl3-gnutls* libgssapi-krb5-2* libk5crypto3* libkeyutils1*
  214. libkrb5-3* libkrb5support0* libldap-2.4-2* libldap-common* libnghttp2-14*
  215. libpsl5* libreadline7* librtmp1* libsasl2-2* libsasl2-modules-db* libssh2-1*
  216. readline-common*
  217. 0 upgraded, 0 newly installed, 17 to remove and 0 not upgraded.
  218. After this operation, 6331 kB disk space will be freed.
  219. (Reading database ... 6941 files and directories currently installed.)
  220. Removing gnupg1 (1.4.23-1) ...
  221. Removing libcurl3-gnutls:amd64 (7.64.0-4) ...
  222. Removing libgssapi-krb5-2:amd64 (1.17-3) ...
  223. Removing libkrb5-3:amd64 (1.17-3) ...
  224. Removing libk5crypto3:amd64 (1.17-3) ...
  225. Removing libkrb5support0:amd64 (1.17-3) ...
  226. Removing libkeyutils1:amd64 (1.6-6) ...
  227. Removing libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u1) ...
  228. Removing libldap-common (2.4.47+dfsg-3+deb10u1) ...
  229. Removing libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
  230. Removing libpsl5:amd64 (0.20.2-2) ...
  231. Removing libreadline7:amd64 (7.0-5) ...
  232. Removing librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
  233. Removing libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ...
  234. Removing libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ...
  235. Removing libssh2-1:amd64 (1.8.0-2.1) ...
  236. Removing readline-common (7.0-5) ...
  237. Processing triggers for libc-bin (2.28-10) ...
  238. (Reading database ... 6777 files and directories currently installed.)
  239. Purging configuration files for libldap-common (2.4.47+dfsg-3+deb10u1) ...
  240. Purging configuration files for libgssapi-krb5-2:amd64 (1.17-3) ...
  241. Purging configuration files for readline-common (7.0-5) ...
  242. + rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/deb.debian.org_debian_dists_buster_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/lock /var/lib/apt/lists/partial /var/lib/apt/lists/security.debian.org_debian-security_dists_buster_updates_InRelease /var/lib/apt/lists/security.debian.org_debian-security_dists_buster_updates_main_binary-amd64_Packages.lz4
  243. + dpkg --print-architecture
  244. + dpkgArch=amd64
  245. + nginxPackages= nginx=1.17.6-1~buster nginx-module-xslt=1.17.6-1~buster nginx-module-geoip=1.17.6-1~buster nginx-module-image-filter=1.17.6-1~buster nginx-module-njs=1.17.6.0.3.7-1~buster
  246. + echo deb https://nginx.org/packages/mainline/debian/ buster nginx
  247. + apt-get update
  248. Get:1 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
  249. Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
  250. Get:3 https://nginx.org/packages/mainline/debian buster InRelease [2857 B]
  251. Get:4 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [167 kB]
  252. Get:5 https://nginx.org/packages/mainline/debian buster/nginx amd64 Packages [15.2 kB]
  253. Get:6 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
  254. Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  255. Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  256. Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  257. Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  258. Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  259. Get:7 http://deb.debian.org/debian buster/main amd64 Packages [7908 kB]
  260. Get:8 http://deb.debian.org/debian buster-updates/main amd64 Packages [5792 B]
  261. Fetched 590 kB in 12min 54s (762 B/s)
  262. Reading package lists...
  263. + apt-get install --no-install-recommends --no-install-suggests -y nginx=1.17.6-1~buster nginx-module-xslt=1.17.6-1~buster nginx-module-geoip=1.17.6-1~buster nginx-module-image-filter=1.17.6-1~buster nginx-module-njs=1.17.6.0.3.7-1~buster gettext-base
  264. Reading package lists...
  265. Building dependency tree...
  266. Reading state information...
  267. The following additional packages will be installed:
  268. fontconfig-config fonts-dejavu-core libbsd0 libexpat1 libfontconfig1
  269. libfreetype6 libgd3 libgeoip1 libicu63 libjbig0 libjpeg62-turbo libpng16-16
  270. libreadline7 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1
  271. libxdmcp6 libxml2 libxpm4 libxslt1.1 lsb-base readline-common sensible-utils
  272. ucf
  273. Suggested packages:
  274. libgd-tools geoip-bin readline-doc
  275. Recommended packages:
  276. geoip-database
  277. The following NEW packages will be installed:
  278. fontconfig-config fonts-dejavu-core gettext-base libbsd0 libexpat1
  279. libfontconfig1 libfreetype6 libgd3 libgeoip1 libicu63 libjbig0
  280. libjpeg62-turbo libpng16-16 libreadline7 libtiff5 libwebp6 libx11-6
  281. libx11-data libxau6 libxcb1 libxdmcp6 libxml2 libxpm4 libxslt1.1 lsb-base
  282. nginx nginx-module-geoip nginx-module-image-filter nginx-module-njs
  283. nginx-module-xslt readline-common sensible-utils ucf
  284. 0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
  285. Need to get 15.8 MB of archives.
  286. After this operation, 54.8 MB of additional disk space will be used.
  287. Get:1 http://deb.debian.org/debian buster/main amd64 readline-common all 7.0-5 [70.6 kB]
  288. Get:2 http://deb.debian.org/debian buster/main amd64 sensible-utils all 0.0.12 [15.8 kB]
  289. Get:3 http://deb.debian.org/debian buster/main amd64 gettext-base amd64 0.19.8.1-9 [123 kB]
  290. Get:4 https://nginx.org/packages/mainline/debian buster/nginx amd64 nginx amd64 1.17.6-1~buster [859 kB]
  291. Get:5 http://deb.debian.org/debian buster/main amd64 ucf all 3.0038+nmu1 [69.0 kB]
  292. Get:6 http://deb.debian.org/debian buster/main amd64 fonts-dejavu-core all 2.37-1 [1068 kB]
  293. Get:7 http://deb.debian.org/debian buster/main amd64 fontconfig-config all 2.13.1-2 [280 kB]
  294. Get:8 http://deb.debian.org/debian buster/main amd64 libbsd0 amd64 0.9.1-2 [99.5 kB]
  295. Get:9 http://deb.debian.org/debian buster/main amd64 libexpat1 amd64 2.2.6-2+deb10u1 [106 kB]
  296. Get:10 http://deb.debian.org/debian buster/main amd64 libpng16-16 amd64 1.6.36-6 [292 kB]
  297. Get:11 http://deb.debian.org/debian buster/main amd64 libfreetype6 amd64 2.9.1-3+deb10u1 [380 kB]
  298. Get:12 http://deb.debian.org/debian buster/main amd64 libfontconfig1 amd64 2.13.1-2 [346 kB]
  299. Get:13 http://deb.debian.org/debian buster/main amd64 libjpeg62-turbo amd64 1:1.5.2-2+b1 [134 kB]
  300. Get:14 http://deb.debian.org/debian buster/main amd64 libjbig0 amd64 2.1-3.1+b2 [31.0 kB]
  301. Get:15 http://deb.debian.org/debian buster/main amd64 libwebp6 amd64 0.6.1-2 [263 kB]
  302. Get:16 http://deb.debian.org/debian buster/main amd64 libtiff5 amd64 4.0.10-4 [257 kB]
  303. Get:17 http://deb.debian.org/debian buster/main amd64 libxau6 amd64 1:1.0.8-1+b2 [19.9 kB]
  304. Get:18 http://deb.debian.org/debian buster/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]
  305. Get:19 http://deb.debian.org/debian buster/main amd64 libxcb1 amd64 1.13.1-2 [137 kB]
  306. Get:20 http://deb.debian.org/debian buster/main amd64 libx11-data all 2:1.6.7-1 [298 kB]
  307. Get:21 http://deb.debian.org/debian buster/main amd64 libx11-6 amd64 2:1.6.7-1 [754 kB]
  308. Get:22 http://deb.debian.org/debian buster/main amd64 libxpm4 amd64 1:3.5.12-1 [49.1 kB]
  309. Get:23 http://deb.debian.org/debian buster/main amd64 libgd3 amd64 2.2.5-5.2 [136 kB]
  310. Get:24 http://deb.debian.org/debian buster/main amd64 libgeoip1 amd64 1.6.12-1 [93.1 kB]
  311. Get:25 http://deb.debian.org/debian buster/main amd64 libicu63 amd64 63.1-6 [8292 kB]
  312. Get:26 https://nginx.org/packages/mainline/debian buster/nginx amd64 nginx-module-geoip amd64 1.17.6-1~buster [76.5 kB]
  313. Get:27 https://nginx.org/packages/mainline/debian buster/nginx amd64 nginx-module-image-filter amd64 1.17.6-1~buster [80.7 kB]
  314. Get:28 https://nginx.org/packages/mainline/debian buster/nginx amd64 nginx-module-njs amd64 1.17.6.0.3.7-1~buster [279 kB]
  315. Get:29 https://nginx.org/packages/mainline/debian buster/nginx amd64 nginx-module-xslt amd64 1.17.6-1~buster [77.7 kB]
  316. Get:30 http://deb.debian.org/debian buster/main amd64 libreadline7 amd64 7.0-5 [151 kB]
  317. Get:31 http://deb.debian.org/debian buster/main amd64 libxml2 amd64 2.9.4+dfsg1-7+b3 [687 kB]
  318. Get:32 http://deb.debian.org/debian buster/main amd64 libxslt1.1 amd64 1.1.32-2.2~deb10u1 [237 kB]
  319. Get:33 http://deb.debian.org/debian buster/main amd64 lsb-base all 10.2019051400 [28.4 kB]
  320. debconf: delaying package configuration, since apt-utils is not installed
  321. Fetched 15.8 MB in 2min 23s (111 kB/s)
  322. Selecting previously unselected package readline-common.
  323. (Reading database ... 6775 files and directories currently installed.)
  324. Preparing to unpack .../00-readline-common_7.0-5_all.deb ...
  325. Unpacking readline-common (7.0-5) ...
  326. Selecting previously unselected package sensible-utils.
  327. Preparing to unpack .../01-sensible-utils_0.0.12_all.deb ...
  328. Unpacking sensible-utils (0.0.12) ...
  329. Selecting previously unselected package gettext-base.
  330. Preparing to unpack .../02-gettext-base_0.19.8.1-9_amd64.deb ...
  331. Unpacking gettext-base (0.19.8.1-9) ...
  332. Selecting previously unselected package ucf.
  333. Preparing to unpack .../03-ucf_3.0038+nmu1_all.deb ...
  334. Moving old data out of the way
  335. Unpacking ucf (3.0038+nmu1) ...
  336. Selecting previously unselected package fonts-dejavu-core.
  337. Preparing to unpack .../04-fonts-dejavu-core_2.37-1_all.deb ...
  338. Unpacking fonts-dejavu-core (2.37-1) ...
  339. Selecting previously unselected package fontconfig-config.
  340. Preparing to unpack .../05-fontconfig-config_2.13.1-2_all.deb ...
  341. Unpacking fontconfig-config (2.13.1-2) ...
  342. Selecting previously unselected package libbsd0:amd64.
  343. Preparing to unpack .../06-libbsd0_0.9.1-2_amd64.deb ...
  344. Unpacking libbsd0:amd64 (0.9.1-2) ...
  345. Selecting previously unselected package libexpat1:amd64.
  346. Preparing to unpack .../07-libexpat1_2.2.6-2+deb10u1_amd64.deb ...
  347. Unpacking libexpat1:amd64 (2.2.6-2+deb10u1) ...
  348. Selecting previously unselected package libpng16-16:amd64.
  349. Preparing to unpack .../08-libpng16-16_1.6.36-6_amd64.deb ...
  350. Unpacking libpng16-16:amd64 (1.6.36-6) ...
  351. Selecting previously unselected package libfreetype6:amd64.
  352. Preparing to unpack .../09-libfreetype6_2.9.1-3+deb10u1_amd64.deb ...
  353. Unpacking libfreetype6:amd64 (2.9.1-3+deb10u1) ...
  354. Selecting previously unselected package libfontconfig1:amd64.
  355. Preparing to unpack .../10-libfontconfig1_2.13.1-2_amd64.deb ...
  356. Unpacking libfontconfig1:amd64 (2.13.1-2) ...
  357. Selecting previously unselected package libjpeg62-turbo:amd64.
  358. Preparing to unpack .../11-libjpeg62-turbo_1%3a1.5.2-2+b1_amd64.deb ...
  359. Unpacking libjpeg62-turbo:amd64 (1:1.5.2-2+b1) ...
  360. Selecting previously unselected package libjbig0:amd64.
  361. Preparing to unpack .../12-libjbig0_2.1-3.1+b2_amd64.deb ...
  362. Unpacking libjbig0:amd64 (2.1-3.1+b2) ...
  363. Selecting previously unselected package libwebp6:amd64.
  364. Preparing to unpack .../13-libwebp6_0.6.1-2_amd64.deb ...
  365. Unpacking libwebp6:amd64 (0.6.1-2) ...
  366. Selecting previously unselected package libtiff5:amd64.
  367. Preparing to unpack .../14-libtiff5_4.0.10-4_amd64.deb ...
  368. Unpacking libtiff5:amd64 (4.0.10-4) ...
  369. Selecting previously unselected package libxau6:amd64.
  370. Preparing to unpack .../15-libxau6_1%3a1.0.8-1+b2_amd64.deb ...
  371. Unpacking libxau6:amd64 (1:1.0.8-1+b2) ...
  372. Selecting previously unselected package libxdmcp6:amd64.
  373. Preparing to unpack .../16-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
  374. Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
  375. Selecting previously unselected package libxcb1:amd64.
  376. Preparing to unpack .../17-libxcb1_1.13.1-2_amd64.deb ...
  377. Unpacking libxcb1:amd64 (1.13.1-2) ...
  378. Selecting previously unselected package libx11-data.
  379. Preparing to unpack .../18-libx11-data_2%3a1.6.7-1_all.deb ...
  380. Unpacking libx11-data (2:1.6.7-1) ...
  381. Selecting previously unselected package libx11-6:amd64.
  382. Preparing to unpack .../19-libx11-6_2%3a1.6.7-1_amd64.deb ...
  383. Unpacking libx11-6:amd64 (2:1.6.7-1) ...
  384. Selecting previously unselected package libxpm4:amd64.
  385. Preparing to unpack .../20-libxpm4_1%3a3.5.12-1_amd64.deb ...
  386. Unpacking libxpm4:amd64 (1:3.5.12-1) ...
  387. Selecting previously unselected package libgd3:amd64.
  388. Preparing to unpack .../21-libgd3_2.2.5-5.2_amd64.deb ...
  389. Unpacking libgd3:amd64 (2.2.5-5.2) ...
  390. Selecting previously unselected package libgeoip1:amd64.
  391. Preparing to unpack .../22-libgeoip1_1.6.12-1_amd64.deb ...
  392. Unpacking libgeoip1:amd64 (1.6.12-1) ...
  393. Selecting previously unselected package libicu63:amd64.
  394. Preparing to unpack .../23-libicu63_63.1-6_amd64.deb ...
  395. Unpacking libicu63:amd64 (63.1-6) ...
  396. Selecting previously unselected package libreadline7:amd64.
  397. Preparing to unpack .../24-libreadline7_7.0-5_amd64.deb ...
  398. Unpacking libreadline7:amd64 (7.0-5) ...
  399. Selecting previously unselected package libxml2:amd64.
  400. Preparing to unpack .../25-libxml2_2.9.4+dfsg1-7+b3_amd64.deb ...
  401. Unpacking libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
  402. Selecting previously unselected package libxslt1.1:amd64.
  403. Preparing to unpack .../26-libxslt1.1_1.1.32-2.2~deb10u1_amd64.deb ...
  404. Unpacking libxslt1.1:amd64 (1.1.32-2.2~deb10u1) ...
  405. Selecting previously unselected package lsb-base.
  406. Preparing to unpack .../27-lsb-base_10.2019051400_all.deb ...
  407. Unpacking lsb-base (10.2019051400) ...
  408. Selecting previously unselected package nginx.
  409. Preparing to unpack .../28-nginx_1.17.6-1~buster_amd64.deb ...
  410. ----------------------------------------------------------------------
  411. Thanks for using nginx!
  412. Please find the official documentation for nginx here:
  413. * http://nginx.org/en/docs/
  414. Please subscribe to nginx-announce mailing list to get
  415. the most important news about nginx:
  416. * http://nginx.org/en/support.html
  417. Commercial subscriptions for nginx are available on:
  418. * http://nginx.com/products/
  419. ----------------------------------------------------------------------
  420. Unpacking nginx (1.17.6-1~buster) ...
  421. Selecting previously unselected package nginx-module-geoip.
  422. Preparing to unpack .../29-nginx-module-geoip_1.17.6-1~buster_amd64.deb ...
  423. Unpacking nginx-module-geoip (1.17.6-1~buster) ...
  424. Selecting previously unselected package nginx-module-image-filter.
  425. Preparing to unpack .../30-nginx-module-image-filter_1.17.6-1~buster_amd64.deb ...
  426. Unpacking nginx-module-image-filter (1.17.6-1~buster) ...
  427. Selecting previously unselected package nginx-module-njs.
  428. Preparing to unpack .../31-nginx-module-njs_1.17.6.0.3.7-1~buster_amd64.deb ...
  429. Unpacking nginx-module-njs (1.17.6.0.3.7-1~buster) ...
  430. Selecting previously unselected package nginx-module-xslt.
  431. Preparing to unpack .../32-nginx-module-xslt_1.17.6-1~buster_amd64.deb ...
  432. Unpacking nginx-module-xslt (1.17.6-1~buster) ...
  433. Setting up libexpat1:amd64 (2.2.6-2+deb10u1) ...
  434. Setting up lsb-base (10.2019051400) ...
  435. Setting up libxau6:amd64 (1:1.0.8-1+b2) ...
  436. Setting up nginx (1.17.6-1~buster) ...
  437. invoke-rc.d: could not determine current runlevel
  438. invoke-rc.d: policy-rc.d denied execution of start.
  439. Setting up gettext-base (0.19.8.1-9) ...
  440. Setting up libjbig0:amd64 (2.1-3.1+b2) ...
  441. Setting up libicu63:amd64 (63.1-6) ...
  442. Setting up libjpeg62-turbo:amd64 (1:1.5.2-2+b1) ...
  443. Setting up libx11-data (2:1.6.7-1) ...
  444. Setting up libpng16-16:amd64 (1.6.36-6) ...
  445. Setting up libwebp6:amd64 (0.6.1-2) ...
  446. Setting up fonts-dejavu-core (2.37-1) ...
  447. Setting up sensible-utils (0.0.12) ...
  448. Setting up libgeoip1:amd64 (1.6.12-1) ...
  449. Setting up libtiff5:amd64 (4.0.10-4) ...
  450. Setting up libbsd0:amd64 (0.9.1-2) ...
  451. Setting up readline-common (7.0-5) ...
  452. Setting up libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
  453. Setting up libreadline7:amd64 (7.0-5) ...
  454. Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
  455. Setting up libxcb1:amd64 (1.13.1-2) ...
  456. Setting up nginx-module-njs (1.17.6.0.3.7-1~buster) ...
  457. ----------------------------------------------------------------------
  458. The njs dynamic modules for nginx have been installed.
  459. To enable these modules, add the following to /etc/nginx/nginx.conf
  460. and reload nginx:
  461. load_module modules/ngx_http_js_module.so;
  462. load_module modules/ngx_stream_js_module.so;
  463. Please refer to the modules documentation for further details:
  464. http://nginx.org/en/docs/njs/
  465. http://nginx.org/en/docs/http/ngx_http_js_module.html
  466. http://nginx.org/en/docs/stream/ngx_stream_js_module.html
  467. ----------------------------------------------------------------------
  468. Setting up libfreetype6:amd64 (2.9.1-3+deb10u1) ...
  469. Setting up nginx-module-geoip (1.17.6-1~buster) ...
  470. ----------------------------------------------------------------------
  471. The GeoIP dynamic modules for nginx have been installed.
  472. To enable these modules, add the following to /etc/nginx/nginx.conf
  473. and reload nginx:
  474. load_module modules/ngx_http_geoip_module.so;
  475. load_module modules/ngx_stream_geoip_module.so;
  476. Please refer to the modules documentation for further details:
  477. http://nginx.org/en/docs/http/ngx_http_geoip_module.html
  478. http://nginx.org/en/docs/stream/ngx_stream_geoip_module.html
  479. ----------------------------------------------------------------------
  480. Setting up ucf (3.0038+nmu1) ...
  481. debconf: unable to initialize frontend: Dialog
  482. debconf: (TERM is not set, so the dialog frontend is not usable.)
  483. debconf: falling back to frontend: Readline
  484. debconf: unable to initialize frontend: Readline
  485. debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
  486. debconf: falling back to frontend: Teletype
  487. Setting up libxslt1.1:amd64 (1.1.32-2.2~deb10u1) ...
  488. Setting up libx11-6:amd64 (2:1.6.7-1) ...
  489. Setting up libxpm4:amd64 (1:3.5.12-1) ...
  490. Setting up fontconfig-config (2.13.1-2) ...
  491. debconf: unable to initialize frontend: Dialog
  492. debconf: (TERM is not set, so the dialog frontend is not usable.)
  493. debconf: falling back to frontend: Readline
  494. debconf: unable to initialize frontend: Readline
  495. debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
  496. debconf: falling back to frontend: Teletype
  497. Setting up nginx-module-xslt (1.17.6-1~buster) ...
  498. ----------------------------------------------------------------------
  499. The xslt dynamic module for nginx has been installed.
  500. To enable this module, add the following to /etc/nginx/nginx.conf
  501. and reload nginx:
  502. load_module modules/ngx_http_xslt_filter_module.so;
  503. Please refer to the module documentation for further details:
  504. http://nginx.org/en/docs/http/ngx_http_xslt_module.html
  505. ----------------------------------------------------------------------
  506. Setting up libfontconfig1:amd64 (2.13.1-2) ...
  507. Setting up libgd3:amd64 (2.2.5-5.2) ...
  508. Setting up nginx-module-image-filter (1.17.6-1~buster) ...
  509. ----------------------------------------------------------------------
  510. The image filter dynamic module for nginx has been installed.
  511. To enable this module, add the following to /etc/nginx/nginx.conf
  512. and reload nginx:
  513. load_module modules/ngx_http_image_filter_module.so;
  514. Please refer to the module documentation for further details:
  515. http://nginx.org/en/docs/http/ngx_http_image_filter_module.html
  516. ----------------------------------------------------------------------
  517. Processing triggers for libc-bin (2.28-10) ...
  518. + apt-get remove --purge --auto-remove -y ca-certificates
  519. Reading package lists...
  520. Building dependency tree...
  521. Reading state information...
  522. The following packages will be REMOVED:
  523. ca-certificates* openssl*
  524. 0 upgraded, 0 newly installed, 2 to remove and 5 not upgraded.
  525. After this operation, 1887 kB disk space will be freed.
  526. (Reading database ... 7510 files and directories currently installed.)
  527. Removing ca-certificates (20190110) ...
  528. Removing dangling symlinks from /etc/ssl/certs... done.
  529. Removing openssl (1.1.1d-0+deb10u2) ...
  530. (Reading database ... 7206 files and directories currently installed.)
  531. Purging configuration files for ca-certificates (20190110) ...
  532. debconf: unable to initialize frontend: Dialog
  533. debconf: (TERM is not set, so the dialog frontend is not usable.)
  534. debconf: falling back to frontend: Readline
  535. debconf: unable to initialize frontend: Readline
  536. debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
  537. debconf: falling back to frontend: Teletype
  538. Removing dangling symlinks from /etc/ssl/certs... done.
  539. Purging configuration files for openssl (1.1.1d-0+deb10u2) ...
  540. + rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/deb.debian.org_debian_dists_buster_InRelease /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages.lz4 /var/lib/apt/lists/lock /var/lib/apt/lists/nginx.org_packages_mainline_debian_dists_buster_InRelease /var/lib/apt/lists/nginx.org_packages_mainline_debian_dists_buster_nginx_binary-amd64_Packages.lz4 /var/lib/apt/lists/partial /var/lib/apt/lists/security.debian.org_debian-security_dists_buster_updates_InRelease /var/lib/apt/lists/security.debian.org_debian-security_dists_buster_updates_main_binary-amd64_Packages.lz4 /etc/apt/sources.list.d/nginx.list
  541. + [ -n ]
  542. Removing intermediate container 8938a2bb5f21
  543. ---> 580b29b7120a
  544. Step 7/10 : RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
  545. ---> Running in f45c073cb620
  546. Removing intermediate container f45c073cb620
  547. ---> 3b64a06ec79e
  548. Step 8/10 : EXPOSE 80
  549. ---> Running in 96da20df9493
  550. Removing intermediate container 96da20df9493
  551. ---> c090d609cd39
  552. Step 9/10 : STOPSIGNAL SIGTERM
  553. ---> Running in 565f527c0f82
  554. Removing intermediate container 565f527c0f82
  555. ---> 26a432a4ba3d
  556. Step 10/10 : CMD ["nginx", "-g", "daemon off;"]
  557. ---> Running in 5b2179080a3d
  558. Removing intermediate container 5b2179080a3d
  559. ---> 2acb7d4366b0
  560. Successfully built 2acb7d4366b0
  561. Successfully tagged nginx:v1.17.6
  562. 验证:
  563. [root@docker nginx]# docker image ls
  564. REPOSITORY TAG IMAGE ID CREATED SIZE
  565. nginx v1.17.6 2acb7d4366b0 9 seconds ago 126MB
  566. debian buster-slim e1af56d072b8 2 days ago 69.2MB
  567. auto-jenkins latest d83c74abb6ca 7 weeks ago 734MB
  568. docker latest cf85f29ec76f 2 months ago 216MB
  569. tomcat latest 882487b8be1d 2 months ago 507MB
  570. centos 6 d0957ffdf8a2 9 months ago 194MB
  571. centos latest 9f38484d220f 9 months ago 202MB
  572. [root@docker nginx]# docker run -it --name web-nginx -d nginx:v1.17.6
  573. ec87ca1b09adf8dcbb3a94b0a23ed13708a75e0be28e9650d8a36a351537787b
  574. [root@docker nginx]# docker ps |grep web-nginx
  575. ec87ca1b09ad nginx:v1.17.6 "nginx -g 'daemon of…" 32 seconds ago Up 31 seconds 80/tcp web-nginx
  576. [root@docker nginx]#