docker-alpine是一个极小的AlpineLinuxDocker镜像,大小只有5MB。
REPOSITORY TAG IMAGE ID VIRTUAL SIZEgliderlabs/alpine latest 157314031a17 5.03 MBdebian latest 4d6ce913b130 84.98 MBubuntu latest b39b81afc8ca 188.3 MBcentos latest 8efe422e6104 210 MBAlpineLinux有更完整更新的索引:
$ docker run progrium/busybox opkg-install nodejsUnknown package 'nodejs'.Collected errors:* opkg_install_cmd: Cannot install package nodejs.$ docker run gliderlabs/alpine apk --update add nodejsfetch https://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz(1/5) Installing c-ares (1.10.0-r1)(2/5) Installing libgcc (4.8.3-r0)(3/5) Installing libstdc++ (4.8.3-r0)(4/5) Installing libuv (0.10.29-r0)(5/5) Installing nodejs (0.10.33-r0)Executing busybox-1.22.1-r14.triggerOK: 21 MiB in 20 packages使用:
FROM gliderlabs/alpine:3.2RUN apk --update add mysql-clientENTRYPOINT ["mysql"]
评论