Advertisement
JonnyBGod

docker alpine nginx log

Apr 27th, 2015
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. $ docker build --rm=true -t nginx .
  2. Sending build context to Docker daemon 6.144 kB
  3. Sending build context to Docker daemon
  4. Step 0 : FROM alpine:latest
  5. ---> b3dbab3810fc
  6. Step 1 : MAINTAINER João Ribeiro <jonnybgod@gmail.com>
  7. ---> Using cache
  8. ---> a32740a762f0
  9. Step 2 : ENV NGINX_VERSION nginx-1.7.11
  10. ---> Using cache
  11. ---> 410c0d3cfe09
  12. Step 3 : ENV DYNAMIC_VERSION f893a7971d85335127f080f03857065a22d82c79
  13. ---> Using cache
  14. ---> 38a58b7d1915
  15. Step 4 : RUN apk update
  16. ---> Running in 1b41fdc4eef8
  17. fetch http://dl-4.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
  18. ERROR: http://dl-4.alpinelinux.org/alpine/v3.1/main: IO ERROR
  19. WARNING: Ignoring APKINDEX.689bb31a.tar.gz: No such file or directory
  20. OK: 15 distinct packages available
  21. ---> 386032724e5c
  22. Removing intermediate container 1b41fdc4eef8
  23. Step 5 : RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
  24. ---> Running in b36ac0682079
  25. ln: /var/log/nginx/access.log: No such file or directory
  26. INFO[0006] The command [/bin/sh -c ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log] returned a non-zero code: 1
  27. Joaos-MacBook-Pro:nginx joaoribeiro$ docker build --rm=true -t nginx .
  28. Sending build context to Docker daemon 6.656 kB
  29. Sending build context to Docker daemon
  30. Step 0 : FROM alpine:latest
  31. ---> b3dbab3810fc
  32. Step 1 : MAINTAINER João Ribeiro <jonnybgod@gmail.com>
  33. ---> Using cache
  34. ---> a32740a762f0
  35. Step 2 : ENV NGINX_VERSION nginx-1.7.11
  36. ---> Using cache
  37. ---> 410c0d3cfe09
  38. Step 3 : ENV DYNAMIC_VERSION f893a7971d85335127f080f03857065a22d82c79
  39. ---> Using cache
  40. ---> 38a58b7d1915
  41. Step 4 : RUN apk --update add openssl-dev pcre-dev zlib-dev wget build-base inotify-tools && mkdir -p /tmp/src && cd /tmp/src && wget https://github.com/GUI/nginx-upstream-dyanmic-servers/archive/${DYNAMIC_VERSION}.tar.gz && tar -zxvf ${DYNAMIC_VERSION}.tar.gz && wget http://nginx.org/download/${NGINX_VERSION}.tar.gz && tar -zxvf ${NGINX_VERSION}.tar.gz && cd /tmp/src/${NGINX_VERSION} && ./configure --add-module=/tmp/src/nginx-upstream-dyanmic-servers-${DYNAMIC_VERSION} --with-http_ssl_module --with-http_gzip_static_module --prefix=/etc/nginx --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --sbin-path=/usr/local/sbin/nginx && make && make install && rm -rf /etc/nginx/nginx.conf && apk del build-base && rm -rf /tmp/src && rm -rf /var/cache/apk/*
  42. ---> Running in a70e7d720513
  43. fetch http://dl-4.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
  44. ERROR: http://dl-4.alpinelinux.org/alpine/v3.1/main: IO ERROR
  45. WARNING: Ignoring APKINDEX.689bb31a.tar.gz: No such file or directory
  46. ERROR: unsatisfiable constraints:
  47. openssl-dev (missing):
  48. required by: world[openssl-dev]
  49. pcre-dev (missing):
  50. required by: world[pcre-dev]
  51. zlib-dev (missing):
  52. required by: world[zlib-dev]
  53. wget (missing):
  54. required by: world[wget]
  55. build-base (missing):
  56. required by: world[build-base]
  57. inotify-tools (missing):
  58. required by: world[inotify-tools]
  59. INFO[0005] The command [/bin/sh -c apk --update add openssl-dev pcre-dev zlib-dev wget build-base inotify-tools && mkdir -p /tmp/src && cd /tmp/src && wget https://github.com/GUI/nginx-upstream-dyanmic-servers/archive/${DYNAMIC_VERSION}.tar.gz && tar -zxvf ${DYNAMIC_VERSION}.tar.gz && wget http://nginx.org/download/${NGINX_VERSION}.tar.gz && tar -zxvf ${NGINX_VERSION}.tar.gz && cd /tmp/src/${NGINX_VERSION} && ./configure --add-module=/tmp/src/nginx-upstream-dyanmic-servers-${DYNAMIC_VERSION} --with-http_ssl_module --with-http_gzip_static_module --prefix=/etc/nginx --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --sbin-path=/usr/local/sbin/nginx && make && make install && rm -rf /etc/nginx/nginx.conf && apk del build-base && rm -rf /tmp/src && rm -rf /var/cache/apk/*] returned a non-zero code: 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement