小编Che*_*han的帖子

当我们在Docker的php7.2-apache中安装gd时,找不到Freetype-config错误

我正在尝试从Dockerfile安装映像php:7.2-apache,但是我在gd配置中遇到问题。

我已经从https://github.com/docker/toolbox/releases/tag/v18.09.3页面安装了最新版本的docker toolbox 18.09.3,因为我有Windows Home 10

Dockerfile的内容如下

FROM php:7.2-apache

RUN apt-get update && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libpng-dev \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd
Run Code Online (Sandbox Code Playgroud)

我有此错误配置:错误:找不到freetype-config。在图像构建期间

checking for the location of libwebp... no
checking for the location of libjpeg... /usr/include/
checking for the location of libpng... no
checking for the location of libz... no
checking for the location of libXpm... no
checking for FreeType 2... /usr/include/
checking whether …
Run Code Online (Sandbox Code Playgroud)

docker

7
推荐指数
1
解决办法
2474
查看次数

在 Gitlab 中撤消新的合并请求

我错误地将提交推送到了我的 Gitlab。我怎样才能撤消它?

看图片

gitlab

6
推荐指数
2
解决办法
6万
查看次数

在Docker中复制具有相同ID的图像

当我使用docker-compose文件下载图像时,图像是重复的.这是我的docker-compose.yml

version: "3"
services:

   ubuntu:
      build: ./linux
      container_name: ubuntu
      stdin_open: true
      tty: true

我的Dockerfile在linux文件夹中

FROM ubuntu

命令"$ docker images"的输出:

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ubuntu              latest              ccc7a11d65b1        9 days ago          120 MB
ubuntu_ubuntu       latest              ccc7a11d65b1        9 days ago          120 MB

docker

3
推荐指数
1
解决办法
7090
查看次数

为什么“无”映像出现在Docker中以及我们如何避免它

当我docker-compose build由于在Dockerfile中进行了更改而在Docker中运行命令以重建映像时,有时会收到“无”映像标签。我们如何避免这个事实?我想重建图像,但不显示任何图像。

REPOSITORY  TAG            IMAGE ID            CREATED             SIZE
magento2    latest         b4dce4dcbd4f        16 hours ago        516MB
<none>      <none>         b4ffce2bf91e        16 hours ago        519MB
<none>      <none>         a1aedb60c82a        17 hours ago        516MB
<none>      <none>         ec9a14ae856c        20 hours ago        519MB
<none>      <none>         ef8eba6874cc        23 hours ago        516MB
<none>      <none>         0e53a8b8c303        23 hours ago        516MB
php         7.1-apache     93e6fb4b13e1        3 weeks ago         369MB
mysql       5.6.39         079344ce5ebd        7 months ago        256MB
Run Code Online (Sandbox Code Playgroud)

docker dockerfile docker-compose

3
推荐指数
2
解决办法
2334
查看次数

标签 统计

docker ×3

docker-compose ×1

dockerfile ×1

gitlab ×1