运维木子小李架构师之路

docker镜像加载原里

第一层 bootfs(boot file system); 主要包含BootLoader和kernel,BootLoader主要是引导加载kernel,linux刚启动时会加载bootfs文件系统,在docker镜像的最底层是bootfs,这一层与我们典型的linux、Unix系统是一样的,包含boot加载和内核,当boot加载完成之后整个内核就在内存中了,此时内存的使用权己由bootfs转交给内核,此时系统也会卸载bootfs

第二层 Base,images,rootfs (root file system);包含的就是典型Linux系统中的 bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var等标准的目录和文件,rootfs就是各种不同的操作系统发行版,比如centos ubuntu Debian等等

第三层 集成开发环境emocs

第四层 我们的应用镜像层,比如 mariadb nginx redis镜像层

镜像的定义
Docker images are the basis of containers. An Image is an ordered collection of root filesystem changes and the corresponding execution parameters for use within a container runtime. An image typically contains a union of layered filesystems stacked on top of each other. An image does not have state and it never changes.
1,Docker images are the basis of containers 使用;容器的基础。
2,An Image is an ordered collection of root filesystem changes and the corresponding execution parameters for use within a container runtime
内容; 命令集合,文件系统变化和对应在容器运行时用到的执行参数
3,An image typically contains a union of layered filesystems stacked on top of each other 框架;分层联合文件系统堆砌
4,An image does not have state and it never changes 特点 没有状态,它永远不会改变

怎么获得镜像
方式1 通过;从远程仓库下载 docker.hub
方式2 通过;制作镜像dockerfile

UninoFS(联合文件系统)
UninoFS:是一种分层、轻量级并且高性能的文件系统,它支持对文件系统的修改作为一次提交来一层层的叠加,同时可以将不同目录挂载到同一个虚拟文件系统下(unite serveral directories into a single virual filesystem )UninoFS文件系统是docker镜像的基础,镜像可以通过分层来实现的,基于基础镜像(没有父镜像),可以制作各种具体的应用镜像。
特性:一次同时加载多个文件系统,但是从外面看起来,只能看到一个文件系统,联合加载会把各层文件系统叠加起来,这样最终的文件系统会保函所有底层的文件和目录

「梦想一旦被付诸行动,就会变得神圣,如果觉得我的文章对您有用,请帮助本站成长」

分享到:
赞(0) 打赏
多谢大佬的支持

支付宝扫一扫打赏

微信扫一扫打赏

标签:

上一篇:

下一篇:

相关推荐

0 条评论关于"Docker镜像解读"

最新评论

    暂无留言哦~~

博客简介

精彩评论

站点统计

  • 文章总数: 29 篇
  • 草稿数目: 0 篇
  • 分类数目: 14 个
  • 独立页面: 0 个
  • 评论总数: 8 条
  • 链接总数: 6 个
  • 标签总数: 12 个
  • 注册用户: 48 人
  • 访问总量: 8,689,301 次
  • 最近更新: 2023年5月21日
服务热线:
 17608504224

 QQ在线交流

 旺旺在线