fecshop使用docker安装,构建命令【docker-compose build】报错

安装报错 · qq977088778 · 于 5年前 发布 · 1771 次阅读
[root@iZpoxjwedxie3eZ etc]# docker-compose build
xunsearch uses an image, skipping
mongodb uses an image, skipping
redis uses an image, skipping
mysql uses an image, skipping
Building php
Step 1/11 : FROM php:7.1.13-fpm
7.1.13-fpm: Pulling from library/php
f49cf87b52c1: Pull complete
185616061386: Pull complete
5fc132db2e0d: Pull complete
00c1c323341a: Pull complete
c5fdfbd84ee9: Pull complete
944ca804523d: Pull complete
5f8680da6162: Pull complete
e99c6e5bb99a: Pull complete
2c9454f03781: Pull complete
74b18f859219: Pull complete
Digest: sha256:f92d5587511b3e7b91a9fd34ad2a005dee4a2b95497a66197785eda0d6239466
Status: Downloaded newer image for php:7.1.13-fpm
 ---> 3ac64cb99e11
Step 2/11 : RUN apt-get update && apt-get install -y         libfreetype6-dev         librabbitmq-dev         libssh-dev         libjpeg62-turbo-dev         libmcrypt-dev         libpng12-dev         libicu-dev         libxml2-dev         libssl-dev         git         wget         ssh         libpcre3-dev         --no-install-recommends
 ---> Running in 7e01cc036204
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Get:2 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Get:3 http://deb.debian.org jessie Release [148 kB]
Ign http://deb.debian.org jessie-updates Release
Get:4 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [825 kB]
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Fetched 10.1 MB in 27s (374 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'php' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y         libfreetype6-dev         librabbitmq-dev         libssh-dev         libjpeg62-turbo-dev         libmcrypt-dev         libpng12-dev         libicu-dev         libxml2-dev         libssl-dev         git         wget         ssh         libpcre3-dev         --no-install-recommends' returned a non-zero code: 100

共收到 4 条回复
Fecmall#15年前 0 个赞

如果因为网络问题构建失败,可以试一下阿里云的yml文件

https://github.com/fecshop/yii2_fecshop_docker

最后面QA部分有介绍

QA:

1.安装的时候,在构建php的时候报错,怎么办?

答:您可以将文件 docker-compose.yml.aliyun 的内容复制到 docker-compose.yml 中,然后执行下面的命名构建

docker-compose build --no-cache
docker-compose.yml.aliyun中添加了做好了的php镜像,地址放到了阿里云docker镜像中心,国内建议使用该文件

docker-compose.yml.php.hub: php镜像放到了hub.docker.com ,国外服务器使用该地址
Fecmall#25年前 0 个赞

qq977088778#35年前 0 个赞

@Fecshop #1楼 我用了1.24版本的docker,就没有这个问题了

1.24(目前最新版docker)安装命令:

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Fecmall#45年前 0 个赞

好的 :thumbsup: :thumbsup: :thumbsup:

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics