Which standard Linux command line tools are included in the official Alpine Linux Docker image?

(Which, which you would expect, are missing?)

I tried to Google this but was not successful.


1 Answer 1


These are the packages installed in the official Alpine Linux Docker image tagged as latest:

$ docker run alpine:latest apk list --installed
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: No such file or directory
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: No such file or directory
musl-1.2.3-r4 x86_64 {musl} (MIT) [installed]
zlib-1.2.13-r0 x86_64 {zlib} (Zlib) [installed]
apk-tools-2.12.10-r1 x86_64 {apk-tools} (GPL-2.0-only) [installed]
busybox-binsh-1.35.0-r29 x86_64 {busybox} (GPL-2.0-only) [installed]
musl-utils-1.2.3-r4 x86_64 {musl} (MIT AND BSD-2-Clause AND GPL-2.0-or-later) [installed]
alpine-baselayout-3.4.0-r0 x86_64 {alpine-baselayout} (GPL-2.0-only) [installed]
alpine-keys-2.4-r1 x86_64 {alpine-keys} (MIT) [installed]
libcrypto3-3.0.7-r0 x86_64 {openssl} (Apache-2.0) [installed]
busybox-1.35.0-r29 x86_64 {busybox} (GPL-2.0-only) [installed]
scanelf-1.3.5-r1 x86_64 {pax-utils} (GPL-2.0-only) [installed]
ca-certificates-bundle-20220614-r2 x86_64 {ca-certificates} (MPL-2.0 AND MIT) [installed]
libc-utils-0.7.2-r3 x86_64 {libc-dev} (BSD-2-Clause AND BSD-3-Clause) [installed]
ssl_client-1.35.0-r29 x86_64 {busybox} (GPL-2.0-only) [installed]
alpine-baselayout-data-3.4.0-r0 x86_64 {alpine-baselayout} (GPL-2.0-only) [installed]
libssl3-3.0.7-r0 x86_64 {openssl} (Apache-2.0) [installed]

Assuming that you by "standard tools" mean "commonly found tools", most of the provided command line tools on Alpine Linux would be the ones built into busybox, which includes the following utilities:

$ docker run alpine:latest busybox --list | column
[               eject           klogd           paste           su
[[              env             last            pgrep           sum
acpid           ether-wake      less            pidof           swapoff
add-shell       expand          link            ping            swapon
addgroup        expr            linux32         ping6           switch_root
adduser         factor          linux64         pipe_progress   sync
adjtimex        fallocate       ln              pivot_root      sysctl
arch            false           loadfont        pkill           syslogd
arp             fatattr         loadkmap        pmap            tac
arping          fbset           logger          poweroff        tail
ash             fbsplash        login           printenv        tar
awk             fdflush         logread         printf          tee
base64          fdisk           losetup         ps              test
basename        fgrep           ls              pscan           time
bbconfig        find            lsattr          pstree          timeout
bc              findfs          lsmod           pwd             top
beep            flock           lsof            pwdx            touch
blkdiscard      fold            lsusb           raidautorun     tr
blkid           free            lzcat           rdate           traceroute
blockdev        fsck            lzma            rdev            traceroute6
brctl           fstrim          lzop            readahead       true
bunzip2         fsync           lzopcat         readlink        truncate
bzcat           fuser           makemime        realpath        tty
bzip2           getopt          md5sum          reboot          ttysize
cal             getty           mdev            reformime       tunctl
cat             grep            mesg            remove-shell    udhcpc
chattr          groups          microcom        renice          udhcpc6
chgrp           gunzip          mkdir           reset           umount
chmod           gzip            mkdosfs         resize          uname
chown           halt            mkfifo          rev             unexpand
chpasswd        hd              mkfs.vfat       rfkill          uniq
chroot          head            mknod           rm              unix2dos
chvt            hexdump         mkpasswd        rmdir           unlink
cksum           hostid          mkswap          rmmod           unlzma
clear           hostname        mktemp          route           unlzop
cmp             hwclock         modinfo         run-parts       unshare
comm            id              modprobe        sed             unxz
cp              ifconfig        more            sendmail        unzip
cpio            ifdown          mount           seq             uptime
crond           ifenslave       mountpoint      setconsole      usleep
crontab         ifup            mpstat          setfont         uudecode
cryptpw         init            mv              setkeycodes     uuencode
cut             inotifyd        nameif          setlogcons      vconfig
date            insmod          nanddump        setpriv         vi
dc              install         nandwrite       setserial       vlock
dd              ionice          nbd-client      setsid          volname
deallocvt       iostat          nc              sh              watch
delgroup        ip              netstat         sha1sum         watchdog
deluser         ipaddr          nice            sha256sum       wc
depmod          ipcalc          nl              sha3sum         wget
df              ipcrm           nmeter          sha512sum       which
diff            ipcs            nohup           showkey         who
dirname         iplink          nologin         shred           whoami
dmesg           ipneigh         nproc           shuf            whois
dnsdomainname   iproute         nsenter         slattach        xargs
dos2unix        iprule          nslookup        sleep           xxd
du              iptunnel        ntpd            sort            xzcat
dumpkmap        kbd_mode        od              split           yes
echo            kill            openvt          stat            zcat
ed              killall         partprobe       strings
egrep           killall5        passwd          stty

As you can see, this includes most utilities you may expect to find on a Unix or Linux system, including variants of the vi editor and text-processing tools such as sed and awk. You also get various sysadmin and miscellaneous other tools.

I'm ignoring the question about "expected tools that are missing", as it depends on what the system is supposed to be used for. It is common to install missing applications in a Dockerfile using apk if needed. When running Alpine Linux on bare metal, you may want to install any number of things, like a graphical desktop environment or maybe just a more feature-rich shell and editor, or manuals.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .