Error during docker install
Opened this issue · 2 comments
aagha commented
Can't delete Issue
AleksandrIvin commented
I also have an error
$ docker compose up
[+] Running 1/1
! app Warning 2.0s
[+] Building 9.9s (13/15)
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.12kB 0.0s
=> [app internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [app internal] load metadata for docker.io/library/php:8.1-apache 2.0s
=> [app 1/11] FROM docker.io/library/php:8.1-apache@sha256:3df0827d609518765180ee24ba98d00c819e668172a8ae3495bffd420e116009 0.0s
=> [app internal] load build context 0.0s
=> => transferring context: 626B 0.0s
=> CACHED [app 2/11] COPY 000-default.conf /etc/apache2/sites-available/000-default.conf 0.0s
=> CACHED [app 3/11] RUN a2enmod rewrite 0.0s
=> CACHED [app 4/11] RUN apt-get update && apt-get install libzip-dev wget git unzip -y --no-install-recommends 0.0s
=> CACHED [app 5/11] RUN docker-php-ext-install zip pdo_mysql 0.0s
=> CACHED [app 6/11] RUN pecl install -o -f xdebug-3.1.5 && docker-php-ext-enable xdebug 0.0s
=> [app 7/11] COPY ./install-composer.sh ./ 0.1s
=> [app 8/11] COPY ./php.ini /usr/local/etc/php/ 0.1s
=> ERROR [app 9/11] RUN apt-get purge -y g++ && apt-get autoremove -y && rm -r /var/lib/apt/lists/* && rm -rf /tmp/* && sh ./install-composer.sh && rm ./install-composer.sh 7.5s
------
> [app 9/11] RUN apt-get purge -y g++ && apt-get autoremove -y && rm -r /var/lib/apt/lists/* && rm -rf /tmp/* && sh ./install-composer.sh && rm ./install-composer.sh:
0.355 Reading package lists...
1.947 Building dependency tree...
2.296 Reading state information...
2.704 The following packages were automatically installed and are no longer required:
2.707 g++-12 libstdc++-12-dev
2.707 Use 'apt autoremove' to remove them.
2.739 The following packages will be REMOVED:
2.744 g++*
3.195 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded.
3.195 After this operation, 14.3 kB disk space will be freed.
(Reading database ... 15561 files and directories currently installed.)
3.274 Removing g++ (4:12.2.0-3) ...
3.433 Reading package lists...
4.769 Building dependency tree...
5.159 Reading state information...
5.559 The following packages will be REMOVED:
5.563 g++-12 libstdc++-12-dev
5.930 0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
5.930 After this operation, 56.9 MB disk space will be freed.
(Reading database ... 15557 files and directories currently installed.)
5.994 Removing g++-12 (12.2.0-14) ...
6.074 Removing libstdc++-12-dev:amd64 (12.2.0-14) ...
: not foundtall-composer.sh: 2:
6.585 Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(
7.254 Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(
: not foundtall-composer.sh: 6:
7.414 ./install-composer.sh: 18: Syntax error: end of file unexpected (expecting "then")
------
failed to solve: process "/bin/sh -c apt-get purge -y g++ && apt-get autoremove -y && rm -r /var/lib/apt/lists/* && rm -rf /tmp/* && sh ./install-composer.sh && rm ./install-composer.sh" did not complete successfully: e
xit code: 2
It seems the problem is here. EOF appears in the $EXPECTED_SIGNATURE of the if statement or something similar.
SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig)
if [[ "$EXPECTED_SIGNATURE" != "$SIGNATURE" ]]
Win10, Docker Desktop
tournesol59 commented
I retranscrites the first video posted on YouTube (mvc from scratch part1, thank you for posting that) and do some complements from the present code. Since then I got only a ´Not Found’ error. Will try docker this week