docker-alpineAlpine Linux 的 Docker 镜像
REPOSITORY TAG IMAGE ID VIRTUAL SIZE gliderlabs/alpine latest 157314031a17 5.03 MB debian latest 4d6ce913b130 84.98 MB ubuntu latest b39b81afc8ca 188.3 MB centos latest 8efe422e6104 210 MB
Alpine Linux 有更完整更新的索引:
$ docker run progrium/busybox opkg-install nodejs Unknown package 'nodejs'. Collected errors: * opkg_install_cmd: Cannot install package nodejs. $ docker run gliderlabs/alpine apk --update add nodejs fetch http://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.trigger OK: 21 MiB in 20 packages
使用:
FROM gliderlabs/alpine:3.2 RUN apk --update add mysql-client ENTRYPOINT ["mysql"]
评论