いつもどおりlaradockを起動しようとすると次のメッセージが出て起動しない。
------
> [laradock_workspace 5/92] RUN set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && groupadd -g 1000 laradock && useradd -u 1000 -g laradock -m laradock -G docker_env && usermod -p "*" laradock -s /bin/bash && apt-get install -yqq apt-utils libzip-dev zip unzip php7.3-zip nasm && php -m | grep -q 'zip':
#40 0.252 + apt-get update -yqq
#40 31.24 + pecl channel-update pecl.php.net
#40 31.29 Updating channel "pecl.php.net"
#40 31.69 Update of Channel "pecl.php.net" succeeded
#40 31.69 + groupadd -g 1000 laradock
#40 31.70 + useradd -u 1000 -g laradock -m laradock -G docker_env
#40 31.73 + usermod -p * laradock -s /bin/bash
#40 31.74 + apt-get install -yqq apt-utils libzip-dev zip unzip php7.3-zip nasm
#40 33.07 E: Unable to correct problems, you have held broken packages.
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/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']: exit code: 100
why?
やったことは、dockerのアップデートが走ったぐらい。
環境は
Macbook2019
Mac OS Big Sur(11.4)
docker desktop(3.5.2)
うーん。
いろいろ調べて以下で無事起動
workspace/Dockerfile の以下をコメントアウト
# always run apt update when start and after add new source list, then clean up at end.
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 ←追加
###apt-utils \ ←コメントアウト
#
#--------------------------------------------------------------------------
# Mandatory Software's Installation
#--------------------------------------------------------------------------
#
# Mandatory Software's such as ("php-cli", "git", "vim", ....) are
# installed on the base image 'laradock/workspace' image. If you want
# to add more Software's or remove existing one, you need to edit the
# base image (https://github.com/Laradock/workspace).
#
# next lines are here becase there is no auto build on dockerhub see https://github.com/laradock/laradock/pull/1903#issuecomment-463142846
###libzip-dev zip unzip \ ←コメントアウト
# Install the zip extension
###php${LARADOCK_PHP_VERSION}-zip \ ←コメントアウト
# nasm
###nasm && \ ←コメントアウト
###php -m | grep -q 'zip' ←コメントアウト