I'm trying to setup the dev environment for an existing project on another computer under WSL2 and Windows 10. Having installed the project from its own repo with composer install
and making sure a basic .env file is in place, I ran /vendor/bin/sail up
to do the initial build.
Docker starts normally, but then during stage 4 of 11 RUN apt-get update && apt-get install....
, it just halts when it gets to the line gpg: keybox '/root/.gnupg/pubring.kbx' created
the build halts, the clock is still ticking but the operation never finishes.
I'm able to hit Ctrl C and it Cancels cleanly.
Editing Laravel's dockerfile, I added a -v to the gpg --recv-key ...
line in the script and got additional output with the operation halting after gpg: connection to dirmngr established
instead.
I'm running Ubuntu under WSL2, fully updated, docker freshly installed and configured to talk to it as on my other machine where I'm not having any issues.
CodePudding user response:
I'm having this exact same issue...I've been trying to get a Laravel 9 new project setup on my Windows 10 & 11 machines running WSL 2 and Docker Desktop since last night and still no joy.
Here is the output of Ubuntu command line when running the Laravel new project build:
=> [ 4/11] RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 && mkdir -p ~/.gnupg && chmod 600 ~/.gnupg 640.1s
=> => # Processing triggers for ca-certificates (20211016) ...
=> => # Updating certificates in /etc/ssl/certs...
=> => # 0 added, 0 removed; done.
=> => # Running hooks in /etc/ca-certificates/update.d...
=> => # done.
=> => # gpg: keybox '/root/.gnupg/pubring.kbx' created =
=> [ 1/11] FROM docker.io/library/ubuntu:22.04@sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2 0.0s
=> CACHED [ 2/11] WORKDIR /var/www/html 0.0s
=> CACHED [ 3/11] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone 0.0s
=> [internal] load build context 0.0s=
=> => transferring context: 99B
CodePudding user response:
Same issue here, using Windows 11 22H2 with the project on a Ubuntu 20.04 under WSL2.