839891627 / dnmp Goto Github PK
View Code? Open in Web Editor NEW简单可理解的搭建 dnmp 环境。在此基础上由你自行定制!
License: MIT License
简单可理解的搭建 dnmp 环境。在此基础上由你自行定制!
License: MIT License
RUN curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar \
&& chmod a+x /usr/local/bin/composer \
&& composer --version \
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev unzip\
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install pdo_mysql zip gd opcache bcmath pcntl sockets
执行 docker compose up -d
,报以下错误:
ERROR [ 3/16] RUN curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar && chmod a+x /usr/local/bin/composer && composer --version && composer config -g repo.packagist composer h 24.6s
------
> [ 3/16] RUN curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar && chmod a+x /usr/local/bin/composer && composer --version && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ && apt-get update -y && apt-get install -y --no-install-recommends apt-utils && apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev unzip && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && docker-php-ext-install pdo_mysql zip gd opcache bcmath pcntl sockets:
#0 1.905 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
#0 1.905 Do not run Composer as root/super user! See https://getcomposer.org/root for details
#0 1.905 Composer version 2.4.4 2022-10-27 14:39:29
#0 1.975 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
#0 1.975 Do not run Composer as root/super user! See https://getcomposer.org/root for details
#0 2.354 Get:1 https://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease [122 kB]
#0 3.505 Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates InRelease [56.6 kB]
#0 3.673 Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports InRelease [51.4 kB]
#0 3.829 Get:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates InRelease [34.8 kB]
#0 4.040 Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian buster/non-free amd64 Packages [87.8 kB]
#0 4.201 Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian buster/main amd64 Packages [7909 kB]
#0 20.29 Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian buster/contrib amd64 Packages [50.1 kB]
#0 20.39 Get:8 https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates/main amd64 Packages [8788 B]
#0 20.39 Get:9 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/main amd64 Packages [487 kB]
#0 21.37 Get:10 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/contrib amd64 Packages [9196 B]
#0 21.39 Get:11 https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports/non-free amd64 Packages [37.2 kB]
#0 21.56 Get:12 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/main amd64 Packages [405 kB]
#0 23.22 Get:13 https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates/non-free amd64 Packages [556 B]
#0 23.28 Fetched 9260 kB in 21s (435 kB/s)
#0 23.28 Reading package lists...
#0 23.82 Reading package lists...
#0 24.33 Building dependency tree...
#0 24.46 Reading state information...
#0 24.51 Some packages could not be installed. This may mean that you have
#0 24.51 requested an impossible situation or if you are using the unstable
#0 24.51 distribution that some required packages have not yet been created
#0 24.51 or been moved out of Incoming.
#0 24.51 The following information may help to resolve the situation:
#0 24.51
#0 24.51 The following packages have unmet dependencies:
#0 24.56 apt-utils : Depends: apt (= 1.8.2.3) but 2.2.4 is to be installed
#0 24.57 E: Unable to correct problems, you have held broken packages.
------
failed to solve: executor failed running [/bin/sh -c curl -so /usr/local/bin/composer https://mirrors.aliyun.com/composer/composer.phar && chmod a+x /usr/local/bin/composer && composer --version && composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ && apt-get update -y && apt-get install -y --no-install-recommends apt-utils && apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev unzip && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && docker-php-ext-install pdo_mysql zip gd opcache bcmath pcntl sockets]: exit code: 100
apt-utils : Depends: apt (= 1.8.2.3) but 2.2.4 is to be installed
根据这个提示应该是系统版本问题导致,需要校正resources/sources.list
中的系统版本代号
laradock配置xdebug 折腾了两天 网上的各种教程都不适用
所以来这里问问
我目前是这样解决的,你可以参考下,希望对你有帮助
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.