CentOS
Ubuntu
docker
alpine
0

Docker に載せるOSのサイズ比較(更新中)

Docker に載せるOSのサイズ比較

Dockerに載せるOSにはいろいろなものがありますが、コンパクトに動かすためにサイズは気になるとこです。
ちょっと、比較していきますが、少しずつ更新していく予定なので、成長中の記事となります。

オフィシャルイメージって?

Docker公式に Docker Official Images というのがあります。
公式に提供されてる docker のイメージ集みたいなものですね。
何も考えずに、docker run 叩いてもイメージが持ってこれるものです。

確認したら、138個ありました。

adminer
aerospike
alpine
alt
amazonlinux
arangodb
backdrop
bash
bonita
buildpack-deps
busybox
cassandra
centos
chronograf
cirros
clearlinux
clefos
clojure
composer
consul
convertigo
couchbase
couchdb
crate
crux
debian
docker
drupal
eclipse-mosquitto
eggdrop
elasticsearch
elixir
erlang
euleros
fedora
flink
fsharp
gazebo
gcc
geonetwork
ghost
golang
gradle
groovy
haproxy
haskell
haxe
hello-seattle
hello-world
hola-mundo
httpd
hylang
ibmjava
influxdb
irssi
jetty
joomla
jruby
julia
kaazing-gateway
kapacitor
kibana
known
kong
lightstreamer
logstash
mageia
mariadb
matomo
maven
mediawiki
memcached
mongo
mongo-express
mono
mysql
nats
nats-streaming
neo4j
neurodebian
nextcloud
nginx
node
notary
nuxeo
odoo
open-liberty
openjdk
opensuse
oraclelinux
orientdb
owncloud
percona
perl
photon
php
php-zendserver
plone
postgres
pypy
python
r-base
rabbitmq
rakudo-star
rapidoid
redis
redmine
registry
rethinkdb
rocket.chat
ros
ruby
rust
sentry
silverpeas
sl
solr
sonarqube
sourcemage
spiped
storm
swarm
swift
swipl
teamspeak
telegraf
thrift
tomcat
tomee
traefik
ubuntu
vault
websphere-liberty
wordpress
xwiki
yourls
znc
zookeeper

結構ありますね。

さっそくサイズの比較

実際、dockerコマンド叩いて、イメージをひっぱってきて確認しました。

alpine                                                          latest              196d12cf6ab1        2 months ago        4.41MB
amazonlinux                                                     latest              2467e0b1e917        11 days ago         162MB
busybox                                                         latest              59788edf1f3e        2 months ago        1.15MB
centos                                                          latest              1e1148e4cc2c        2 days ago          202MB
cirros                                                          latest              17d52dddc815        8 weeks ago         10.3MB
clearlinux                                                      latest              202faa1a3d2f        3 weeks ago         96.3MB
debian                                                          latest              4879790bd60d        3 weeks ago         101MB
fedora                                                          latest              8c568f104326        4 weeks ago         267MB
oraclelinux                                                     latest              70927e8bd213        4 weeks ago         234MB
photon                                                          latest              e0e7adda5a3e        4 weeks ago         32.1MB
ubuntu                                                          latest              93fd78260bd1        2 weeks ago         86.2MB

ざっくりOSをピックアップしていったので、抜けとかあるかもしれません。
やはり、alpine は圧倒的に小さいですね。
と思ったら、busybox はそれよりも小さいと・・・
使ったことないですけど、組み込み用のLinuxらしいですね。

まとめ

オフィシャルイメージ以外にもいっぱいあると思うので、少しずつ載せていきたいと思います。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away