tm604•

It's nice that Perl is there, but "the latest Linux image" is a bit broad... for Debian-based systems yes, there are a lot of core components relating to apt/dpkg depending on Perl:

apt-cache rdepends perl

but there are many other distributions, Alpine being very popular in Docker for example:

$ docker run -ti alpine:latest
/ # perl -V
/bin/sh: perl: not found
3
bebyk•

Alpine is a lean distro (even not GNU) to be used as a base for building anything for yourself. Probably not the best example to compare.

But yeah, I agree with the argument that there's no generic «Linux» docker image since there's no generic Linux (which is just a kernel).

2
tm604•

Probably not the best example to compare

True! - which made me mildly curious about other popular distributions, looks like it's not installed by default in CentOS or Arch either:

$ docker run -ti archlinux Unable to find image 'archlinux:latest' locally latest: Pulling from library/archlinux 2ed520655641: Pull complete 71981185e000: Pull complete Digest: sha256:fc2d451eb32bbea6e4eb784108b61cd8c109c9ad9ddfd1253e9984533836c592 Status: Downloaded newer image for archlinux:latest [root@2d36b5745ba1 /]# perl -V bash: perl: command not found

$ docker run -ti centos:latest
Unable to find image 'centos:latest' locally
latest: Pulling from library/centos
7a0437f04f83: Pull complete 
Digest: sha256:5528e8b1b1719d34604c87e11dcd1c0a20bedf46e83b5632cdeac91b8c04efc1
Status: Downloaded newer image for centos:latest
[root@067943093a9b /]# perl -V 
bash: perl: command not found

and of course the official Perl image deserves a link at this point:

https://hub.docker.com/_/perl

2