20
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

#docker #dockerfile #Linux #Ubuntu このコマンド何? `rm -rf /var/lib/apt/lists/*` ?

Last updated at Posted at 2018-12-25

Example

RUN apt-get install -q -y && rm -rf /var/lib/apt/lists/*

ubuntuをdocker buildするときaptのキャッシュを削除し容量を小さくする - Qiita

ということらしい。

/var/lib/apt/lists/ とは

「パッケージインデックスファイル」が入るところらしい。

image.png

apt-get updateは何を行っているのか調べてみた〜パッケージインデックスファイルとは何か〜 - 君は心理学者なのか?

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

20
11
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
20
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?