表題の通り。
■ 環境
- Amazon Linux 2016.09.20161028
- Docker for Mac 1.12.3
- Mac OSX El Capitan
■ AmazonLinux
少し前にECRからAmazonLinuxのDockerコンテナイメージをダウンロードすることができると知り実際にも試してみたのだが、今回はDockerHubで公開されているようなので、こちらの方が手っ取り早い感じがしたのでやってみることにした。
$ docker pull amazonlinux
現時点では”2016.09.20161028“が落とされてくるようである。
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
amazonlinux latest 57cfffcf4ff3 5 days ago 328.3 MB
:
$
現時点で既に5日前には存在していたようである。
■ run
起動してログインしてみる。
$ docker run -ti --rm amazonlinux /bin/bash
bash-4.2#
bash-4.2# cat /etc/system-release
Amazon Linux AMI release 2016.09
bash-4.2#
なるほど。また`yum`でパッケージも取得できるようである。
bash-4.2# yum search nginx
Loaded plugins: priorities, update-motd, upgrade-helper
========================================================= N/S matched: nginx ==========================================================
collectd-nginx.x86_64 : Nginx plugin for collectd
munin-nginx.noarch : Network-wide graphing framework (cgi files for nginx)
nginx-all-modules.x86_64 : A meta package that installs all available Nginx modules
nginx-mod-http-geoip.x86_64 : Nginx HTTP geoip module
nginx-mod-http-image-filter.x86_64 : Nginx HTTP image filter module
nginx-mod-http-perl.x86_64 : Nginx HTTP perl module
nginx-mod-http-xslt-filter.x86_64 : Nginx XSLT module
nginx-mod-mail.x86_64 : Nginx mail modules
nginx-mod-stream.x86_64 : Nginx stream modules
nginx.x86_64 : A high performance web server and reverse proxy server
Name and summary matches only, use "search all" for everything.
bash-4.2#
これは開発環境がとても便利になりそうである。
以上。