docker-compose, about Connection failed error during build

Asked 2 years ago, Updated 2 years ago, 160 views

Hello
Using docker-compose, we are building an environment for Ravel, mysql, and phpmmyadmin.

When I try to build based on Dockerfile, I get the following error:

·I searched Google for the same event, but I couldn't find it
·I had my senior clone the code and build it in a different environment, but I succeeded in building it without any problems in his environment

·I was going to rewrite the file /etc/apt/sorts.list in the container directly, but the description in the Dockerfile would be complicated & I thought it would not be a problem to recover by that rewrite

I would like to know the cause of the error below (temporary URL error?).I would like to know how to build an environment without any errors.

Error Contents

Step 4/10: RUN apt-get update & apt-get install-y libzip-dev libpq-dev mariadb-client unzip&&docker-php-ext-install zip pdo_mysql mysqli&docker-phphenable
 --- Running in ed73137c5ccf
Err:1 http://security.debia.org/debian-securitybuster/updates InRelease
  Connection failed [IP: 151.101.64.20480]
Err:2 http://deb.debian.org/debianbusterInRelease
  Connection failed [IP: 151.101.230.13380]
Err:3 http://deb.debian.org/debian cluster-updates InRelease
  Connection failed [IP: 151.101.230.13380]
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Connection failed [IP: 151.101.230.13380]
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease Connection failed [IP: 151.101.64.20480]
W: Failed to fetch http://deb.debian..org/debian/dist/buster-updates/InRelease Connection failed [IP: 151.101.230.13380]
W: Some index files failed to download. They have been ignored, or old ones used installed.
Reading package lists...
Building dependency tree...
Reading state information...
E—Unable to locate package libzip-dev
E—Unable to locate package libpq-dev
E—Unable to locate package mariadb-client
E—Unable to locate package unzip
ERROR: Service 'web' failed to build: The command'/bin/sh-capt-get update & apt-get install-y libzip-dev mariadb-client unzip &&docker-php-ext-install zip do_mysqlodq;my own-docker-docker-p-ext-install zip pdo_mysqloddocker-docker-docker-mysq;my own-docker-docker-docker-docker-docker-docker-docker-dock

Dockerfile

 FROM php:7.3-apache
COPY./php/php.ini/usr/local/etc/php/
COPY./apache/*.conf/etc/apache2/sites-enabled/

RUN apt-get update\
  &apt-get install-y libzip-dev libpq-dev mariadb-client unzip\
  &docker-php-ext-install zip pdo_mysql mysqli\
  &docker-php-ext-enable mysqli

# Composer install
COPY --from=composer/usr/bin/composer/usr/bin/composer
  ENV COMPOSER_ALLOW_SUPERUSER1
  ENV COMPOSER_HOME/composer
  ENV PATH $PATH: /composer/vendor/bin

WORKDIR /var /www/

RUN composer global require "larvel/installer"

docker network docker-compose apt

2022-09-30 21:48

1 Answers

This has been resolved.

The security software I put in the device seemed to have disturbed me, so I disabled it and it was built without any problems.


2022-09-30 21:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.