Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ docker build --rm=true -t nginx .
- Sending build context to Docker daemon 6.144 kB
- Sending build context to Docker daemon
- Step 0 : FROM alpine:latest
- ---> b3dbab3810fc
- Step 1 : MAINTAINER João Ribeiro <jonnybgod@gmail.com>
- ---> Using cache
- ---> a32740a762f0
- Step 2 : ENV NGINX_VERSION nginx-1.7.11
- ---> Using cache
- ---> 410c0d3cfe09
- Step 3 : ENV DYNAMIC_VERSION f893a7971d85335127f080f03857065a22d82c79
- ---> Using cache
- ---> 38a58b7d1915
- Step 4 : RUN apk update
- ---> Running in 1b41fdc4eef8
- fetch http://dl-4.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
- ERROR: http://dl-4.alpinelinux.org/alpine/v3.1/main: IO ERROR
- WARNING: Ignoring APKINDEX.689bb31a.tar.gz: No such file or directory
- OK: 15 distinct packages available
- ---> 386032724e5c
- Removing intermediate container 1b41fdc4eef8
- Step 5 : RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
- ---> Running in b36ac0682079
- ln: /var/log/nginx/access.log: No such file or directory
- 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
- Joaos-MacBook-Pro:nginx joaoribeiro$ docker build --rm=true -t nginx .
- Sending build context to Docker daemon 6.656 kB
- Sending build context to Docker daemon
- Step 0 : FROM alpine:latest
- ---> b3dbab3810fc
- Step 1 : MAINTAINER João Ribeiro <jonnybgod@gmail.com>
- ---> Using cache
- ---> a32740a762f0
- Step 2 : ENV NGINX_VERSION nginx-1.7.11
- ---> Using cache
- ---> 410c0d3cfe09
- Step 3 : ENV DYNAMIC_VERSION f893a7971d85335127f080f03857065a22d82c79
- ---> Using cache
- ---> 38a58b7d1915
- 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/*
- ---> Running in a70e7d720513
- fetch http://dl-4.alpinelinux.org/alpine/v3.1/main/x86_64/APKINDEX.tar.gz
- ERROR: http://dl-4.alpinelinux.org/alpine/v3.1/main: IO ERROR
- WARNING: Ignoring APKINDEX.689bb31a.tar.gz: No such file or directory
- ERROR: unsatisfiable constraints:
- openssl-dev (missing):
- required by: world[openssl-dev]
- pcre-dev (missing):
- required by: world[pcre-dev]
- zlib-dev (missing):
- required by: world[zlib-dev]
- wget (missing):
- required by: world[wget]
- build-base (missing):
- required by: world[build-base]
- inotify-tools (missing):
- required by: world[inotify-tools]
- 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