Alpine Linux (Docker image) に入っているものを見る

どうってことない話ですが、よく見たことないと思って調べてみました。

まず、Aplineのバージョンです。
最新の3.8で見てみました。

```file:sh
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.8.0
PRETTY_NAME="Alpine Linux v3.8"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL="http://bugs.alpinelinux.org"
```

その他にどんなバージョンがあるかは、こちらを参照ください。
https://hub.docker.com/r/library/alpine/tags/

findしてみます。sysとprocはウザいのでよけました。

```file:sh
/ # find . | grep -v './sys/' | grep -v './proc/'
.
./root
./root/.ash_history
./etc
./etc/hosts
./etc/resolv.conf
./etc/hostname
./etc/mtab
./etc/conf.d
./etc/modules-load.d
./etc/crontabs
./etc/crontabs/root
./etc/os-release
./etc/sysctl.d
./etc/sysctl.d/00-alpine.conf
./etc/inittab
./etc/ssl
./etc/ssl/x509v3.cnf
./etc/ssl/certs
./etc/ssl/openssl.cnf
./etc/ssl/cert.pem
./etc/shells
./etc/securetty
./etc/apk
./etc/apk/protected_paths.d
./etc/apk/arch
./etc/apk/world
./etc/apk/keys
./etc/apk/keys/alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
./etc/apk/keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
./etc/apk/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
./etc/apk/repositories
./etc/protocols
./etc/profile.d
./etc/profile.d/color_prompt
./etc/services
./etc/fstab
./etc/localtime
./etc/udhcpd.conf
./etc/group
./etc/modprobe.d
./etc/modprobe.d/i386.conf
./etc/modprobe.d/aliases.conf
./etc/modprobe.d/blacklist.conf
./etc/modprobe.d/kms.conf
./etc/passwd
./etc/issue
./etc/motd
./etc/TZ
./etc/shadow
./etc/logrotate.d
./etc/logrotate.d/acpid
./etc/opt
./etc/sysctl.conf
./etc/init.d
./etc/network
./etc/network/if-post-up.d
./etc/network/if-up.d
./etc/network/if-up.d/dad
./etc/network/if-pre-up.d
./etc/network/if-pre-down.d
./etc/network/if-down.d
./etc/network/if-post-down.d
./etc/alpine-release
./etc/periodic
./etc/periodic/daily
./etc/periodic/weekly
./etc/periodic/15min
./etc/periodic/monthly
./etc/periodic/hourly
./etc/profile
./etc/modules
./.dockerenv
./dev
./dev/console
./dev/core
./dev/stderr
./dev/stdout
./dev/stdin
./dev/fd
./dev/ptmx
./dev/urandom
./dev/zero
./dev/tty
./dev/full
./dev/random
./dev/null
./dev/shm
./dev/mqueue
./dev/pts
./dev/pts/0
./dev/pts/ptmx
./tmp
./bin
./bin/busybox
./bin/dd
./bin/linux64
./bin/bbconfig
./bin/mv
./bin/mknod
./bin/grep
./bin/dnsdomainname
./bin/tar
./bin/setserial
./bin/false
./bin/fgrep
./bin/pidof
./bin/true
./bin/df
./bin/date
./bin/dumpkmap
./bin/rm
./bin/conspy
./bin/ping6
./bin/ls
./bin/mountpoint
./bin/stty
./bin/ipcalc
./bin/sleep
./bin/base64
./bin/dmesg
./bin/fsync
./bin/pipe_progress
./bin/cat
./bin/cp
./bin/sed
./bin/netstat
./bin/chmod
./bin/echo
./bin/mpstat
./bin/egrep
./bin/su
./bin/uname
./bin/usleep
./bin/more
./bin/chown
./bin/kbd_mode
./bin/ionice
./bin/mkdir
./bin/login
./bin/mktemp
./bin/sync
./bin/lzop
./bin/pwd
./bin/fdflush
./bin/iostat
./bin/run-parts
./bin/ash
./bin/printenv
./bin/linux32
./bin/touch
./bin/stat
./bin/reformime
./bin/sh
./bin/rev
./bin/ed
./bin/hostname
./bin/arch
./bin/umount
./bin/fatattr
./bin/makemime
./bin/chgrp
./bin/nice
./bin/ping
./bin/setpriv
./bin/mount
./bin/ps
./bin/ln
./bin/link
./bin/rmdir
./bin/watch
./bin/gzip
./bin/getopt
./bin/gunzip
./bin/kill
./bin/zcat
./srv
./media
./media/floppy
./media/usb
./media/cdrom
./home
./run
./sbin
./sbin/fstrim
./sbin/insmod
./sbin/iprule
./sbin/rmmod
./sbin/ifenslave
./sbin/ifdown
./sbin/klogd
./sbin/watchdog
./sbin/nologin
./sbin/logread
./sbin/iproute
./sbin/tunctl
./sbin/depmod
./sbin/blockdev
./sbin/inotifyd
./sbin/sysctl
./sbin/ifup
./sbin/setconsole
./sbin/arp
./sbin/findfs
./sbin/ip
./sbin/ipaddr
./sbin/hdparm
./sbin/mkfs.vfat
./sbin/init
./sbin/hwclock
./sbin/iplink
./sbin/apk
./sbin/fbsplash
./sbin/lsmod
./sbin/vconfig
./sbin/losetup
./sbin/udhcpc
./sbin/modinfo
./sbin/poweroff
./sbin/slattach
./sbin/getty
./sbin/loadkmap
./sbin/adjtimex
./sbin/swapoff
./sbin/ldconfig
./sbin/reboot
./sbin/swapon
./sbin/fsck
./sbin/ifconfig
./sbin/mkdosfs
./sbin/mkmntdirs
./sbin/halt
./sbin/raidautorun
./sbin/switch_root
./sbin/nameif
./sbin/modprobe
./sbin/route
./sbin/ipneigh
./sbin/mkswap
./sbin/acpid
./sbin/fdisk
./sbin/syslogd
./sbin/iptunnel
./sbin/mdev
./sbin/blkid
./sys
./proc
./var
./var/tmp
./var/lock
./var/lock/subsys
./var/log
./var/cache
./var/cache/apk
./var/cache/misc
./var/spool
./var/spool/cron
./var/spool/cron/crontabs
./var/empty
./var/run
./var/local
./var/opt
./var/lib
./var/lib/apk
./var/lib/misc
./var/lib/udhcpd
./lib
./lib/libssl.so.45.0.1
./lib/libz.so.1
./lib/libcrypto.so.43
./lib/libtls.so.17.0.1
./lib/libssl.so.45
./lib/ld-musl-x86_64.so.1
./lib/libtls.so.17
./lib/apk
./lib/apk/db
./lib/apk/db/scripts.tar
./lib/apk/db/lock
./lib/apk/db/triggers
./lib/apk/db/installed
./lib/libz.so.1.2.11
./lib/libc.musl-x86_64.so.1
./lib/libcrypto.so.43.0.1
./lib/firmware
./lib/mdev
./mnt
./usr
./usr/bin
./usr/bin/lsusb
./usr/bin/pkill
./usr/bin/bunzip2
./usr/bin/sha256sum
./usr/bin/paste
./usr/bin/free
./usr/bin/vlock
./usr/bin/time
./usr/bin/whois
./usr/bin/pgrep
./usr/bin/getconf
./usr/bin/comm
./usr/bin/dumpleases
./usr/bin/ssl_client
./usr/bin/printf
./usr/bin/hexdump
./usr/bin/cal
./usr/bin/split
./usr/bin/unlzop
./usr/bin/wc
./usr/bin/unlzma
./usr/bin/pstree
./usr/bin/reset
./usr/bin/nsenter
./usr/bin/beep
./usr/bin/pscan
./usr/bin/nmeter
./usr/bin/groups
./usr/bin/tail
./usr/bin/microcom
./usr/bin/[
./usr/bin/shuf
./usr/bin/setsid
./usr/bin/resize
./usr/bin/yes
./usr/bin/tee
./usr/bin/head
./usr/bin/unzip
./usr/bin/truncate
./usr/bin/xargs
./usr/bin/cksum
./usr/bin/blkdiscard
./usr/bin/top
./usr/bin/find
./usr/bin/bzip2
./usr/bin/ipcrm
./usr/bin/less
./usr/bin/tty
./usr/bin/od
./usr/bin/flock
./usr/bin/lzcat
./usr/bin/crontab
./usr/bin/fuser
./usr/bin/shred
./usr/bin/hostid
./usr/bin/deallocvt
./usr/bin/uptime
./usr/bin/hd
./usr/bin/tr
./usr/bin/dc
./usr/bin/realpath
./usr/bin/dirname
./usr/bin/install
./usr/bin/showkey
./usr/bin/cpio
./usr/bin/tac
./usr/bin/pmap
./usr/bin/uniq
./usr/bin/du
./usr/bin/ipcs
./usr/bin/getent
./usr/bin/uudecode
./usr/bin/nl
./usr/bin/lzopcat
./usr/bin/udhcpc6
./usr/bin/clear
./usr/bin/env
./usr/bin/unxz
./usr/bin/xzcat
./usr/bin/lzma
./usr/bin/whoami
./usr/bin/nohup
./usr/bin/md5sum
./usr/bin/which
./usr/bin/eject
./usr/bin/ldd
./usr/bin/openvt
./usr/bin/factor
./usr/bin/[[
./usr/bin/cryptpw
./usr/bin/sha512sum
./usr/bin/volname
./usr/bin/lsof
./usr/bin/test
./usr/bin/nc
./usr/bin/uuencode
./usr/bin/bzcat
./usr/bin/passwd
./usr/bin/expr
./usr/bin/timeout
./usr/bin/cmp
./usr/bin/mkpasswd
./usr/bin/killall
./usr/bin/patch
./usr/bin/fallocate
./usr/bin/unexpand
./usr/bin/fold
./usr/bin/chvt
./usr/bin/setkeycodes
./usr/bin/ttysize
./usr/bin/readlink
./usr/bin/smemcap
./usr/bin/traceroute
./usr/bin/basename
./usr/bin/pwdx
./usr/bin/renice
./usr/bin/scanelf
./usr/bin/cut
./usr/bin/dos2unix
./usr/bin/nslookup
./usr/bin/id
./usr/bin/logger
./usr/bin/strings
./usr/bin/sort
./usr/bin/wget
./usr/bin/unix2dos
./usr/bin/xxd
./usr/bin/diff
./usr/bin/unlink
./usr/bin/iconv
./usr/bin/unshare
./usr/bin/sha3sum
./usr/bin/mesg
./usr/bin/awk
./usr/bin/traceroute6
./usr/bin/vi
./usr/bin/expand
./usr/bin/sha1sum
./usr/bin/mkfifo
./usr/bin/seq
./usr/bin/nproc
./usr/bin/sum
./usr/share
./usr/share/apk
./usr/share/apk/keys
./usr/share/apk/keys/aarch64
./usr/share/apk/keys/aarch64/alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
./usr/share/apk/keys/x86
./usr/share/apk/keys/x86/alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
./usr/share/apk/keys/x86/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
./usr/share/apk/keys/x86_64
./usr/share/apk/keys/x86_64/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
./usr/share/apk/keys/x86_64/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
./usr/share/apk/keys/armhf
./usr/share/apk/keys/armhf/alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub
./usr/share/apk/keys/ppc64le
./usr/share/apk/keys/ppc64le/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub
./usr/share/apk/keys/s390x
./usr/share/apk/keys/s390x/alpine-devel@lists.alpinelinux.org-58e4f17d.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-58e4f17d.rsa.pub
./usr/share/apk/keys/alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
./usr/share/misc
./usr/share/man
./usr/sbin
./usr/sbin/add-shell
./usr/sbin/setlogcons
./usr/sbin/rdate
./usr/sbin/fbset
./usr/sbin/loadfont
./usr/sbin/nandwrite
./usr/sbin/rfkill
./usr/sbin/lspci
./usr/sbin/sendmail
./usr/sbin/remove-shell
./usr/sbin/adduser
./usr/sbin/readahead
./usr/sbin/nbd-client
./usr/sbin/rdev
./usr/sbin/setfont
./usr/sbin/brctl
./usr/sbin/readprofile
./usr/sbin/addgroup
./usr/sbin/chpasswd
./usr/sbin/chroot
./usr/sbin/ether-wake
./usr/sbin/ntpd
./usr/sbin/powertop
./usr/sbin/nanddump
./usr/sbin/killall5
./usr/sbin/delgroup
./usr/sbin/partprobe
./usr/sbin/crond
./usr/sbin/fdformat
./usr/sbin/deluser
./usr/sbin/arping
./usr/local
./usr/local/bin
./usr/local/share
./usr/local/lib
./usr/lib
./usr/lib/libssl.so.45.0.1
./usr/lib/libcrypto.so.43
./usr/lib/libtls.so.17.0.1
./usr/lib/libssl.so.45
./usr/lib/libtls.so.17
./usr/lib/libcrypto.so.43.0.1
```

これだけです。ライブラリなどは最小限なのがよく分かると思います。
/bin/
/sbin/
/usr/bin/
/usr/sbin/
辺りのコマンドは、ほとんどbusyboxへのシンボリックリンクなので、これ以上は
削れない感じですね。