问题描述
我正在使用 laradock 进行开发。我的项目需要 nginx mariadb phpmyadmin redis 工作区 php-fpm 和 elasticsearch 图像。但是,在构建工作区映像时构建过程会停止。
这是控制台输出:
Building workspace
Step 1/307 : ARG LARADOCK_PHP_VERSION
Step 2/307 : ARG BASE_IMAGE_TAG_PREFIX=latest
Step 3/307 : FROM laradock/workspace:${BASE_IMAGE_TAG_PREFIX}-${LARADOCK_PHP_VERSION}
---> ce8386d44649
Step 4/307 : LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
---> Running in 30a9f156757d
Removing intermediate container 30a9f156757d
---> bd518ebb424b
Step 5/307 : ARG LARADOCK_PHP_VERSION
---> Running in a3634c265c2d
Removing intermediate container a3634c265c2d
---> 62286407a411
Step 6/307 : ENV DEBIAN_FRONTEND noninteractive
---> Running in 327f85579428
Removing intermediate container 327f85579428
---> 6f29cf0a9463
Step 7/307 : ARG CHANGE_SOURCE=false
---> Running in 05617b1d0e13
Removing intermediate container 05617b1d0e13
---> 1b2299b6501e
Step 8/307 : RUN if [ ${CHANGE_SOURCE} = true ]; then sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list ;fi
---> Running in 0e602f5d6d87
Removing intermediate container 0e602f5d6d87
---> 442b7b4810bc
Step 9/307 : USER root
---> Running in 4a9b7238f786
Removing intermediate container 4a9b7238f786
---> ad887b677d98
Step 10/307 : ARG PUID=1000
---> Running in 21d39b04ba4c
Removing intermediate container 21d39b04ba4c
---> 8982f7c0f430
Step 11/307 : ENV PUID ${PUID}
---> Running in 1a28ae96c1cb
Removing intermediate container 1a28ae96c1cb
---> aef72974f6df
Step 12/307 : ARG PGID=1000
---> Running in a52875c7adda
Removing intermediate container a52875c7adda
---> 75ce4d9a0adb
Step 13/307 : ENV PGID ${PGID}
---> Running in 1a5df45f1a21
Removing intermediate container 1a5df45f1a21
---> f043c326df85
Step 14/307 : ARG CHANGE_SOURCE=false
---> Running in 959e5d4e5b33
Removing intermediate container 959e5d4e5b33
---> f1493c0316a3
Step 15/307 : ARG UBUNTU_SOURCE
---> Running in 51eee6e5300c
Removing intermediate container 51eee6e5300c
---> 87ae758d90b7
Step 16/307 : COPY ./sources.sh /tmp/sources.sh
---> 30b695ff071a
Step 17/307 : RUN if [ ${CHANGE_SOURCE} = true ]; then chmod +x /tmp/sources.sh && /bin/sh -c /tmp/sources.sh && rm -rf /tmp/sources.sh ;fi
---> Running in 57ca0d9faaee
Removing intermediate container 57ca0d9faaee
---> 28b7302ca4e9
Step 18/307 : RUN set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && groupadd -g ${PGID} laradock && useradd -u ${PUID} -g laradock -m laradock -G docker_env && usermod -p "*" laradock -s /bin/bash && apt-get install -yqq apt-utils libzip-dev zip unzip php${LARADOCK_PHP_VERSION}-zip nasm && php -m | grep -q 'zip'
---> Running in d3c6b647172a
+ apt-get update -yqq
E: Release file for http://ppa.launchpad.net/ondrej/php/ubuntu/dists/bionic/InRelease is not valid yet (invalid for another 22d 1h 21min 40s). Updates for this repository will not be applied.
E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 22d 0h 20min 42s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 22d 0h 46min 46s). Updates for this repository will not be applied.
E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 22d 0h 22min 24s). Updates for this repository will not be applied.
Service 'workspace' failed to build : The command '/bin/sh -c set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && groupadd -g ${PGID} laradock && useradd -u ${PUID} -g laradock -m laradock -G docker_env && usermod -p "*" laradock -s /bin/bash && apt-get install -yqq apt-utils libzip-dev zip unzip php${LARADOCK_PHP_VERSION}-zip nasm && php -m | grep -q 'zip'' returned a non-zero code: 100
任何帮助将不胜感激。
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)