[13th][Day8] docker image

回顾一下如何建立一个 基本的 container

docker run -it --name eric_is_learning ubuntu bash 

上述指令会建立一个名为 eric_is_learning 的 container
基於 ubuntu image
最後启用 bash shell

about docker image

docker image 是由 UnionFS 叠加而成。最底层是 bootfs (Boot File system ,包含bootloader 和 kernel)
在 container 启动後,bootfs 就会被 umount(取消挂载),留下更多的记忆体可以留给 initrd (Disk Mirror)使用

bootfs 之後是 root文件:rootfs (Root filesystem)
rootfs 可以是一种 or 多种 作业系统(ex: Debian , Ubuntu ... etc)

传统 linux 启动程序中,root 文件最初会以 read only 的方式载入,载入完毕後会变成 R/W 模式
但在 docker 中,rootfs 永远只能读取,docker,的 Union mount 技术会在 rootfs 层上挂入更多的 read only file system 。

About Union mount by wiki

In computer operating systems, union mounting is a way of combining multiple directories into one that appears to contain their combined contents

是一种将多个目录合并为一个似乎包含其合并内容的方法

同时载入多个 file system 但在外层只会看到『一个』file system,当他们通通叠再一起之後,最终的 file system 会包含所有的底层的文件&目录。


<<:  Intro

>>:  鬼故事 - 灭证高手

找LeetCode上简单的题目来撑过30天啦(DAY11)

今天好累,直接上题目 题号:36 标题:Valid Sudoku 难度:Medium Determi...

【Day 03】string

1. string 今天要来介绍 string(字串),会介绍一些 string 的基本观念以及使用...

uname Command in Linux with Examples

Today you will learn about a command which will he...

#5 JavaScript in Browser

今天写一些浏览器跟 DOM 的东西。 DOM 全名是 Document Object Model,是...

[Day 13] Reactive Programming - Reactor(Processors & Sinks)

前言 这个主题花了我好多的时间查资料,之前提到动态的产生publisher其实就有sink的概念,但...