Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install imagick #105

Closed
boedy opened this issue Jun 8, 2015 · 48 comments
Closed

Unable to install imagick #105

boedy opened this issue Jun 8, 2015 · 48 comments

Comments

@boedy
Copy link

boedy commented Jun 8, 2015

I'm unable to install imagick. I'm always running into this error:

checking ImageMagick MagickWand API configuration program... configure: error: not found. Please
provide a path to MagickWand-config or Wand-config program.

I've tried all solutions I could find on google, but without any success. Hope to have some luck here. These are the steps I've taken:

RUN apt-get update && apt-get install -y imagemagick php5-imagick libpng-dev libmagickwand-dev
libmagickcore-dev &&
curl -L http://pecl.php.net/get/imagick-3.1.1.tgz >> /usr/src/php/ext/imagick.tgz &&
tar -xf /usr/src/php/ext/imagick.tgz -C /usr/src/php/ext/ &&
rm /usr/src/php/ext/imagick.tgz

RUN docker-php-ext-install imagick-3.1.2

@tianon
Copy link
Member

tianon commented Jun 12, 2015

http://stackoverflow.com/q/14332539/433558 appears to be a report of this exact issue, and the solution in http://stackoverflow.com/a/14354912/433558 is working for me (ie, using pecl install imagick-beta instead of pecl install imagick):

FROM php:5
RUN apt-get update && apt-get install -y libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
RUN pecl install imagick-beta

@boedy
Copy link
Author

boedy commented Jun 14, 2015

That seems to solve it. Thanks!

@boedy boedy closed this as completed Jun 14, 2015
@boedy
Copy link
Author

boedy commented Jun 14, 2015

Somehow the extension is not loaded though.

only if I do it this way:

RUN apt-get install -y libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*  && \
    curl -L https://pecl.php.net/get/imagick-3.3.0RC2.tgz >> /usr/src/php/ext/imagick.tgz && \
    tar -xf /usr/src/php/ext/imagick.tgz -C /usr/src/php/ext/ && \
    rm /usr/src/php/ext/imagick.tgz

RUN docker-php-ext-install imagick-3.3.0RC2

I've added imagick.so to the php.ini file, but that didn't seem to work.

Does docker-php-ext-install do something extra besides creating a .ini file?

@boedy boedy reopened this Jun 14, 2015
@tianon
Copy link
Member

tianon commented Jun 19, 2015

Yes, that would be

ini="/usr/local/etc/php/conf.d/docker-php-ext-$ext.ini"
for module in modules/*.so; do
if [ -f "$module" ]; then
if grep -q zend_extension_entry "$module"; then
# https://wiki.php.net/internals/extensions#loading_zend_extensions
line="zend_extension=$(basename "$module")"
else
line="extension=$(basename "$module")"
fi
if ! grep -q "$line" "$ini" 2>/dev/null; then
echo "$line" >> "$ini"
fi
fi
done
(which isn't perfect, but it works OK).

So, you probably just need to add something like this:

RUN echo 'extension=rmagick.so' > /usr/local/etc/php/conf.d/ext-rmagick.ini

I've contemplated adding a docker-php-ext-enable, but I'm not sure whether that'd really be useful since it's essentially just that one-liner. Perhaps our docs section about how to use docker-php-ext-install should be followed by a section about how to use PECL appropriately instead. 👍

@boedy
Copy link
Author

boedy commented Jun 22, 2015

👍

@roelvanduijnhoven
Copy link

I had troubles getting this to work. In the end I found the following snipplet used by a Wordpress Dockerfile that did work.

RUN apt-get update && apt-get install -y libmagickwand-6.q16-dev --no-install-recommends \
 && ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config /usr/bin \
 && pecl install imagick \
 && echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini

If this could be abstracted away into am docker-php-ext-install imagemagick that would be awesome! Not sure how the mechanism works though.

@tianon
Copy link
Member

tianon commented Jan 18, 2016

It's worth pointing out here that #122 did add docker-php-ext-enable and that imagick has been updated, so I've just tested the following Dockerfile to be working successfully:

FROM php:5
RUN apt-get update && apt-get install -y libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
RUN pecl install imagick && docker-php-ext-enable imagick
root@f1a53d21c435:/# php -i | grep magic
Additional .ini files parsed => /usr/local/etc/php/conf.d/docker-php-ext-imagick.ini
libmagic => 517
imagick
imagick module => enabled
imagick module version => 3.3.0
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version => ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
Imagick using ImageMagick library version => ImageMagick 6.8.9-9 Q16 x86_64 2015-01-05 http://www.imagemagick.org
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.skip_version_check => 0 => 0

@AustinMaddox
Copy link

Is installing imagick on PHP 7 not possible?

7.0.0

FROM php:7.0.0-fpm

# Install Imagick.
RUN apt-get-update && apt-get install -y \
    libmagickwand-dev
RUN pecl install imagick
RUN docker-php-ext-enable imagick
 ---> Running in 793875575c01
pecl/imagick is not compatible with PHP version 7.0.0
No valid packages found
install failed
Removing intermediate container 793875575c01

7.0.3

FROM php:7.0.3-fpm

# Install Imagick.
RUN apt-get-update && apt-get install -y \
    libmagickwand-dev
RUN pecl install imagick
RUN docker-php-ext-enable imagick
Step 5 : RUN pecl install imagick
 ---> Running in ee9f8c037810
pecl/imagick requires PHP (version >= 5.1.3, version <= 7.0.0, excluded versions: 7.0.0), installed version is 7.0.3
No valid packages found
install failed
Removing intermediate container ee9f8c037810

@yosifkit
Copy link
Member

@AustinMaddox, that looks like an issue with imagick itself; they don't yet support php7 in their releases, but there is a branch in their code that would work, but I am not sure how stable it is since it is not yet in a regular release. The branch is here https://github.com/mkoppanen/imagick/tree/phpseven and it looks like there is info on installing it in Imagick/imagick#129. There is an RC6 release.

@mikehaertl
Copy link

There's a 3.4.1 release of imagick now which seems to work fine with PHP7. I was able to install it with

FROM php:7.0.3-fpm
RUN apt-get update \
    && apt-get -y install \
            libmagickwand-dev \
        --no-install-recommends \
    && pecl install imagick \
    && docker-php-ext-enable imagick \
    && rm -r /var/lib/apt/lists/*

@fgirardey
Copy link

I'm trying this on Alpine Linux and it doesn't work 😢

FROM php:7.0-fpm-alpine

RUN apk add --update imagemagick-dev \
    && pecl install imagick \
    && docker-php-ext-enable imagick

Have you a solution for Alpine Linux ?

@yosifkit
Copy link
Member

@fgirardey, did you also apk add --no-cache any other dependencies? The alpine variant is kept extremely minimal, so you would need to add in any tools like autoconf or a C compiler. I think the full set you would need is:

$ apk add --no-cache autoconf gcc g++ imagemagick-dev libtool make

To save final image space, you should also be able to remove most of them in the same RUN once the extension is compiled.

@fgirardey
Copy link

@yosifkit it absolutely solved my problem 😊

my finale image is like that :

FROM php:7.0-fpm-alpine

MAINTAINER Florian GIRARDEY <fgirardey@groupeforum.pro>

RUN apk add --update freetype-dev libpng-dev libjpeg-turbo-dev libxml2-dev autoconf g++ imagemagick-dev libtool make \
    && docker-php-ext-install gd \
    && docker-php-ext-configure gd \
        --with-gd \
        --with-freetype-dir=/usr/include/ \
        --with-png-dir=/usr/include/ \
        --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install mbstring \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install opcache \
    && docker-php-ext-install soap \
    && pecl install imagick \
    && docker-php-ext-enable imagick \
    && apk del autoconf g++ libtool make \
    && rm -rf /tmp/* /var/cache/apk/*

@franz-josef-kaiser
Copy link

franz-josef-kaiser commented Jul 24, 2016

@fgirardey You want to run docker-php-ext-install gd after you ran docker-php-ext-configure gd ….

@fgirardey
Copy link

@franz-josef-kaiser Oh yeah you are right, it wasn't working.

Now it seems to be better, thanks a lot :

FROM php:7.0-fpm-alpine

MAINTAINER Florian GIRARDEY <fgirardey@groupeforum.pro>

# install the PHP extensions we need
RUN apk add --update freetype-dev libpng-dev libjpeg-turbo-dev libxml2-dev autoconf g++ imagemagick-dev libtool make \
    && docker-php-ext-configure gd \
        --with-gd \
        --with-freetype-dir=/usr/include/ \
        --with-png-dir=/usr/include/ \
        --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install gd \
    && docker-php-ext-install mbstring \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install opcache \
    && docker-php-ext-install soap \
    && pecl install imagick \
    && docker-php-ext-enable imagick \
    && apk del autoconf g++ libtool make \
    && rm -rf /tmp/* /var/cache/apk/*

@AliMD
Copy link

AliMD commented Sep 26, 2016

I use this way to install imagick for php:5 and other solution not work for me!

FROM php:5.6-apache

MAINTAINER Ali Mihandoost <i@ali.md> 

COPY . /var/www/html/

RUN apt-get update \
  && DEBIAN_FRONTEND=noninteractive apt-get install -y php5-imagick --no-install-recommends \
  && php5enmod imagick
  && rm -rf /var/lib/apt/lists/*

@yosifkit
Copy link
Member

@AliMD, I am hesitant to recommend that way, since the php5-imagick package from Debian may not work with the version of PHP that the container has.

@tianon
Copy link
Member

tianon commented Sep 26, 2016

I would highly recommend against using Debian-packaged PHP bits with this image -- we don't provide the bits dpkg needs to know which version of PHP we've included, so it will likely end up pulling in Debian's php packages (which will either shadow the PHP we've installed or be ignored due to ours taking precedence).

I've just tested the following for installing imagick with php:5.6-apache successfully:

FROM php:5.6-apache

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        libmagickwand-dev \
    && rm -rf /var/lib/apt/lists/*

RUN pecl install imagick-3.4.1 \
    && docker-php-ext-enable imagick

And again, with Alpine and PHP 7, for good measure:

FROM php:7-alpine

RUN set -x \
    && apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
    && pecl install imagick-3.4.1 \
    && docker-php-ext-enable imagick \
    && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
    && apk del .phpize-deps

@tianon
Copy link
Member

tianon commented Sep 26, 2016

Closing, given that the original issue appears to be fully resolved.

@ghost
Copy link

ghost commented Feb 7, 2017

ProTip: Remember to export PHP's CFLAGS/CPPFLAGS/LDFLAGS before installing imagick-3.4.1

&& export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \

Otherwise improved ASLR and optimizations are not taken in count by the extension and therefore makes hardened PHP less safer than it should be.

@franz-josef-kaiser
Copy link

@pwnsdx Better press Y when you want to link to some file. This gives you the exact commit as reference – else you are linking to a maybe moving target.

@ghost
Copy link

ghost commented Feb 8, 2017

@franz-josef-kaiser Noted :)

@heygrady
Copy link

heygrady commented Mar 17, 2017

For PHP 7.1 you need imagick-3.4.3.

https://bugs.php.net/bug.php?id=72311

FROM php:7.1-fpm-alpine

RUN set -ex \
    && apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
    && export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick \
    && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
    && apk del .phpize-deps

balakrishnangithub added a commit to balakrishnangithub/docker-php-apache that referenced this issue Jun 1, 2017
@GabLeRoux
Copy link

GabLeRoux commented Nov 30, 2017

Same as above comment (PHP 7.1 you need imagick-3.4.3) but for debian based Dockerfile. I took tianon (Tianon Gravi)'s solution with pwnsdx (Sabri)'s pro tip for improved ASLR and optimizations in a single layer:

FROM php:7.1-fpm

RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        libmagickwand-dev \
    && rm -rf /var/lib/apt/lists/* \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick

🚀

@felipemarques
Copy link

Its works for me too ... on php 7.2

FROM php:7.2-fpm

RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        libmagickwand-dev \
    && rm -rf /var/lib/apt/lists/* \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick

@bensquire
Copy link

bensquire commented Oct 24, 2018

Can confirm @heygrady solution worked for me on php:7.2-alpine3.8.

@ptflp
Copy link

ptflp commented Dec 12, 2018

Solved

alpine3.8 php 7.0 7.1 tested
https://gist.github.com/ptflp/5cc7ff386ed3338bac4033ec13c339e9

@fischkopp
Copy link

Has anyone experience with php:7.2-apache

I tried the following

RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS"
&& apt-get update
&& apt-get install -y --no-install-recommends
libmagickwand-dev
&& rm -rf /var/lib/apt/lists/*
&& pecl install imagick-3.4.3
&& docker-php-ext-enable imagick

It seems that it was installed:

php -i | grep imagick
Additional .ini files parsed => /usr/local/etc/php/conf.d/docker-php-ext-imagick.ini,
imagick
imagick module => enabled
imagick module version => 3.4.3
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.skip_version_check => 0 => 0

But when I type "which convert" e.g nothing returns.

@tianon
Copy link
Member

tianon commented Jan 12, 2019

If you want the convert command (which is not a PHP command nor is it even related to PHP), you need to install a package which provides it. In Debian Stretch, that's graphicsmagick-imagemagick-compat or imagemagick-6.q16 (as can be seen on https://packages.debian.org/stretch/imagemagick).

@danielbachhuber
Copy link

danielbachhuber commented Feb 14, 2019

I ran into some problems trying to install Imagick to a CircleCI container. Specifically, a cryptic Exited with code 141 error:

image

The solution was to ignore the error with || true.

In total, installation looks like this:

sudo apt-get update
sudo apt-get install -y libmagickwand-dev --no-install-recommends
yes '' | sudo pecl install imagick || true
sudo docker-php-ext-enable imagick

@albaad
Copy link

albaad commented May 14, 2019

This solution works like a charm for PHP5.

RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        libmagickwand-dev \
    && rm -rf /var/lib/apt/lists/* \
    && pecl install imagick-3.3.0 \
    && docker-php-ext-enable imagick

However, the image build fails when I try to target a specific Imagick beta version (3.2.0RC1, I am trying to reproduce as faithfully as possible our production environment). It would seem like the MagickWand is not compatible (?):

checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: /tmp/pear/temp/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick' failed
The command '/bin/sh -c export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS"     && apt-get update     && apt-get install -y --no-install-recommends         libmagickwand-6.q16-dev     && rm -rf /var/lib/apt/lists/*     && pecl install imagick-3.2.0RC1     && docker-php-ext-enable imagick' returned a non-zero code: 1

@llioor
Copy link

llioor commented Dec 8, 2019

#Install imagemagick:
ENV MAGICK_HOME=/usr
RUN apk --no-cache update \
    && apk --no-cache upgrade \
  && apk add --update freetype-dev libpng-dev libjpeg-turbo-dev libxml2-dev autoconf g++ imagemagick-dev imagemagick libtool make \
    && docker-php-ext-configure gd \
        --with-gd \
        --with-freetype-dir=/usr/include/ \
        --with-png-dir=/usr/include/ \
        --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install gd \
    && docker-php-ext-install mbstring \
    && docker-php-ext-install mysqli \
    && docker-php-ext-install opcache \
    && docker-php-ext-install soap \
    && pecl install imagick \
    && docker-php-ext-enable imagick \
    && apk del autoconf g++ libtool make

Best solution php 7.3

@mlocati
Copy link

mlocati commented Dec 13, 2019

Just a side note: I recently added Alpine support to my install-php-extensions script: you can easily install the imagick PHP extension (as well as many other extensions) on Alpine & Debian by running:

ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/

RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
    install-php-extensions imagick

@abdennour
Copy link

abdennour commented Jul 5, 2020

Putting all together, even avoiding the interactive shell of "autodetect" :

FROM php:7.2-fpm

RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && apt-get update -y \
    && apt-get install -y --no-install-recommends \
        libmagickwand-dev \
    && rm -rf /var/lib/apt/lists/* \
    && yes '' | pecl install imagick-3.4.3|| true \
    && docker-php-ext-enable imagick

But still it does not work. May be my case is different : I have supervisord is the main process (PID 1) and there is no php-fpm is runnning... because the role of this container is to be queue worker only (php artisan queue:work ).
I am not sure which should i restart to make it work ?
OR should I hit php-fpm to start fpm process ? or no need ?

UPDATE :
Also you need to install gs or ghostscripts if you are converting from PDF to images.

  wget https://github.com/luvvien/resources/raw/master/ghostscript-9.22-linux-x86_64.tar.gz \
      && tar -xzvf ghostscript-9.22-linux-x86_64.tar.gz \
      && cd ghostscript-9.22-linux-x86_64 \
      && cp gs-922-linux-x86_64 /usr/local/bin/gs \
      && ln -s /usr/local/bin/gs /usr/bin/gs \
      && rm ../ghostscript-9.22-linux-x86_64.tar.gz \
      && rm -rf ghostscript-9.22-linux-x86_64

@mlocati
Copy link

mlocati commented Jul 5, 2020

@abdennour did you try install-php-extensions?

@abdennour
Copy link

No @mlocati ! what's this ?

@mlocati
Copy link

mlocati commented Jul 6, 2020

@abdennour see the above comment #105 (comment)

@franz-josef-kaiser
Copy link

franz-josef-kaiser commented Jul 6, 2020

@abdennour He was referring to this script here: docker-php-ext-install.
Note: Link points to current latest blob on the master branch.

Edit: I missed the link that @mlocati posted to his extension installer above. He was referring to that one.

@AddoSolutions
Copy link

AddoSolutions commented Aug 25, 2021

Add mme to this thread,

I am getting:

Starting to download imagick-3.4.3.tgz (245,410 bytes)
...................................................done: 245,410 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
Please provide the prefix of Imagemagick installation [autodetect] : building in /tmp/pear/temp/pear-build-defaultuserhpr4zS/imagick-3.4.3
running: /tmp/pear/temp/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
ls: cannot access '.': Operation not permitted
configure: error: working directory cannot be determined
ERROR: `/tmp/pear/temp/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick' failed
ERROR: Service 'httpd' failed to build: The command '/bin/sh -c export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS"     && apt-get update     && apt-get install -y --no-install-recommends         libmagickwand-dev     && rm -rf /var/lib/apt/lists/*     && pecl install imagick-3.4.3     && docker-php-ext-enable imagick' returned a non-zero code: 1

With the following:

FROM php:7-apache

RUN apt-get update; \
  apt-get install -y autoconf g++ make openssl libmcrypt-dev libreadline-dev libssl-dev libcurl4-openssl-dev pkg-config libsasl2-dev zlibc zlib*-dev gi$
  docker-php-ext-install gd; \
  docker-php-ext-install mysqli; \
  docker-php-ext-install pdo; \
  docker-php-ext-install pdo_mysql; \
  docker-php-ext-install exif; \
  pecl channel-update pecl.php.net; \

RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        libmagickwand-dev \
    && rm -rf /var/lib/apt/lists/* \
    && pecl install imagick-3.4.3 \
    && docker-php-ext-enable imagick

Note, I tried the docker-php-extension-installer which looks really cool, but getting the same result

UPDATE: Switching from 7 (which right now is version 7.4.x) to 7.2 seems to have resoled the issue. Perhaps is this a PHP 7.4 issue?

@mlocati
Copy link

mlocati commented Aug 25, 2021

@AddoSolutions what about using my install-php-extensions script? It makes your life much easier, and you can install many PHP extensions with just one line without having to worry about apt packages (and saving disk space because the script removes the apt packages needed just at compile time)...

Here's how you can install the extensions you need:

FROM php:7-apache

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/

RUN install-php-extensions gd mysqli pdo pdo_mysql exif imagick

Here's the list of supported extensions.

@AddoSolutions
Copy link

@mlocati I did try that for the issue I described, however it still would not work on the latest php:7-apache image. After changing to 7.2-apache it worked fine.

I am guessing this is an issue with the PHP image, but don't have enough info to prove it, and ran out of time to diagnose :)

Going forward however, I will be refactoring the docker image to use that extension is is supremely helpful! Thanks for putting that together 👍

@mlocati
Copy link

mlocati commented Aug 26, 2021

@AddoSolutions is your problem with docker hub? If so, see also mlocati/docker-php-extension-installer#378

@AddoSolutions
Copy link

@mlocati Nope, this was a local build from a Dockerfile

@mlocati
Copy link

mlocati commented Aug 26, 2021

@AddoSolutions what about your local machine: OS? Version?

@AddoSolutions
Copy link

[me@xxx ~]# hostnamectl
   Static hostname: xxx
         Icon name: computer-vm
           Chassis: vm
    Virtualization: kvm
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.xxx.el7.x86_64
      Architecture: x86-64
[me@xxx ~]# docker -v
Docker version 19.03.2, build 6a30dfc

@mlocati
Copy link

mlocati commented Aug 26, 2021

@AddoSolutions accordingly to this message the reason may be because you are using a rather old linux kernel version

EDIT The root cause is that the coreutils that comes with Debian 11 (Bullseye) is version 8.32, and that version prevent docker images from running when the host OS uses a rather old kernel. The solution is to keep using Debian 10 (Buster), which uses coreutils 8.30 (which is not affected by this problem).

@AddoSolutions
Copy link

@mlocati I appreciate all the help – I guess it's going to be a day of kernel updates, woohoo!

@mlocati
Copy link

mlocati commented Aug 26, 2021

@AddoSolutions please keep me updated, I'm really curious to see if that works 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests