Overlay Filesystemとは?
overlay filesystemは、複数のディレクトリ層を1つの論理ビューにマージし、下位の層は読み取り専用、上位の層がすべての書き込みを受け取ります。読み取りはそのファイルを持つ層まで落ちていき、書き込みと削除は上位の層にのみ記録されます。これがcontainerイメージのレイヤリングの背後にある仕組みです。
なぜ重要か
containerイメージは積み重ねたoverlay層から作られ、これが共有のベース層をcacheしCI jobをまたいで再利用できる理由です。書き込み可能な最上層を理解すると、commitやmount外し出しをしない限りcontainerの変更が消える理由が分かります。
関連ガイド
What Is a Bind Mount?A bind mount makes an existing directory or file appear at a second path, so the same content is reachable fr…
What Is an Inode?An inode is the on-disk record that stores a file metadata and the location of its data blocks, while the fil…
What Is a Copy-on-Write Fork?A copy-on-write fork shares the parent memory pages with the child read-only and copies a page only when one…