LoginSignup
12
12

More than 5 years have passed since last update.

ubuntu-essential: 最小構成の Ubuntu Docker Image

Posted at

Docker Image でサイズの小さい Ubuntu と言えば公式の

https://hub.docker.com/_/ubuntu-debootstrap/ (87MB)

ですが、残念ながら DEPRECATED になってしまっています。
さて、どうしたものか、自分で Build しようかと調べていたら、公式では無いもののさらに小さいイメージを発見しました。

https://hub.docker.com/r/textlab/ubuntu-essential/ (61MB)

比較しますと、

+--------------+----------------------------------+----------+---------------------+
|      ID      |            NAME:TAGS             | SIZE(MB) |     CREATED AT      |
+--------------+----------------------------------+----------+---------------------+
| 6cc0fc2a5ee3 | ubuntu:14.04.3                   |  187.900 | 2016-01-20 08:31:24 |
| 8e0aa5f79abe | ubuntu-debootstrap:14.04.3       |   87.066 | 2015-10-14 12:34:58 |
| ceec11e38a60 | textlab/ubuntu-essential:latest  |   60.831 | 2014-12-09 05:15:37 |
+--------------+----------------------------------+----------+---------------------+

ちょっと残念なのは作成されたのがかなり古いということ。

https://github.com/textlab/glossa/blob/master/script/build_ubuntu_essential.sh
こちらのスクリプトで作られているようなので、最新の ubuntu:14.04 をベースに自分で Build してみました。

+--------------+----------------------------------+----------+---------------------+
|      ID      |            NAME:TAGS             | SIZE(MB) |     CREATED AT      |
+--------------+----------------------------------+----------+---------------------+
| e8e309a7dd00 | ailispaw/ubuntu-essential:latest |   61.219 | 2016-01-27 19:41:27 |
| 6cc0fc2a5ee3 | ubuntu:14.04.3                   |  187.900 | 2016-01-20 08:31:24 |
| 8e0aa5f79abe | ubuntu-debootstrap:14.04.3       |   87.066 | 2015-10-14 12:34:58 |
| ceec11e38a60 | textlab/ubuntu-essential:latest  |   60.831 | 2014-12-09 05:15:37 |
+--------------+----------------------------------+----------+---------------------+

これで最新の状態で最小構成の Ubuntu Image が出来ました〜
ダウンロードも速いし、必要なパッケージのみ追加すればいいので、これをベースにすれば小さいイメージになります。

https://hub.docker.com/r/ailispaw/ubuntu-essential/
https://github.com/ailispaw/ubuntu-essential

12
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12