Skip to content

docker build后报错 #17

@LIUWEIAJS

Description

@LIUWEIAJS

root@instance-1:~/oneindexMod# docker build -t oneindexmod1 .
Sending build context to Docker daemon 1.683MB
Step 1/7 : FROM php:fpm-alpine
fpm-alpine: Pulling from library/php
050382585609: Pull complete
e880c35ca90c: Pull complete
8ef96ce51793: Pull complete
7ad1c877c150: Pull complete
6605a4b39ff0: Pull complete
95c20a3c2500: Pull complete
f1de8e50872a: Pull complete
2ece620c6c09: Pull complete
2a24f123c899: Pull complete
f96c3a168602: Pull complete
Digest: sha256:7390edf76f87cb52503b5aa7392eade17fced7c19abc99906f9f0f3ff5162acd
Status: Downloaded newer image for php:fpm-alpine
---> ffe86c502127
Step 2/7 : WORKDIR /var/www/html
---> Running in c5e64c5a14c1
Removing intermediate container c5e64c5a14c1
---> 27a8c9fb3d4b
Step 3/7 : COPY / /var/www/html/
---> 2cd372418fc2
Step 4/7 : RUN apk add --no-cache nginx && mkdir /run/nginx && chown -R www-data:www-data cache/ config/ && mv default.conf /etc/nginx/conf.d && mv php.ini /usr/local/etc/php
---> Running in b47b6755b85c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/2) Installing pcre (8.43-r0)
(2/2) Installing nginx (1.16.1-r0)
Executing nginx-1.16.1-r0.pre-install
Executing busybox-1.30.1-r2.trigger
OK: 19 MiB in 31 packages
chown: cache/: No such file or directory
The command '/bin/sh -c apk add --no-cache nginx && mkdir /run/nginx && chown -R www-data:www-data cache/ config/ && mv default.conf /etc/nginx/conf.d && mv php.ini /usr/local/etc/php' returned a non-zero code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions