avatar
Articles
675
Tags
207
Categories
99
Home
Archives
Tags
Categories
About
ByteCodingKubernetes - Containerized Application Back to Home
Home
Archives
Tags
Categories
About

Kubernetes - Containerized Application

Created2022-07-03|Cloud NativeCloud Native FoundationKubernetes
|Word Count:0|Reading Time:1mins

Author: zhongmingmao
Link: https://blog.zhongmingmao.top/2022/07/03/cloud-native-foundation-k8s-containerized-application/
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Cloud NativeKubernetesDockerContainer
cover of previous post
Previous
Spring Cloud - Overview
cover of next post
Next
Kubernetes - Docker Principle
Related Articles
cover
2022-09-19
Kubernetes - Dockerfile
Image 镜像由多层 Layer 组成,Layer 是一组只读不可修改的文件,Layer 可以在镜像间共享Image = Layer + Union FS 1234567891011121314$ docker inspect nginx:alpine... "RootFS": { "Type": "layers", "Layers": [ "sha256:e5e13b0c77cbb769548077189c3da2f0a764ceca06af49d8d558e759f5c232bd", "sha256:07099189e7ec257e501d9625507b55e0ea32c330e38c90d8533b3fa2a7a97069", "sha256:fcf860bf48b4e20f24f44ba02...
cover
2022-07-08
Kubernetes - Dockerfile
cover
2022-07-09
Kubernetes - Registry
cover
2022-07-02
Kubernetes - Docker Principle
cover
2022-09-16
Kubernetes - Docker Nature
本质 容器,是一个特殊的隔离环境,能够让进程只看到这个环境内的有限信息,不能对外界环境施加影响隔离的原因:系统安全隔离的实现:namespace + cgroup + chroot(rootfs) Container vs VM 容器并不是直接运行在 Docker 上,Docker 只是辅助建立隔离环境,让容器基于 Linux 运行 VM 虚拟化出来的是硬件,需要在上面再安装一个 Guest OS 才能运行应用程序,会消耗大量的系统资源 容器则直接利用了下层的计算机硬件和操作系统,非常轻量级,但多个容器共用 OS Kernel,隔离程度不如 VM 实现方式 优势 劣势 VM 虚拟化硬件 隔离程度非常高 资源消耗大,启动慢 Container 直接利用下层的硬件和操作系统 资源利用率高运行速度快 隔离程度较低
cover
2022-09-18
Kubernetes - Containerization
镜像 只读:依赖的文件系统、依赖库、环境变量、启动参数等 核心解决的问题:应用分发 应用容器化 应用不再直接与 OS 打交道,而是封装成镜像,再交给容器环境去运行 常用命令镜像 命令 作用 docker pull 从远端仓库拉取镜像 docker images 列出当前本地已有的镜像 docker rmi 删除不再使用的镜像 容器12$ docker run -h srv --rm alpine hostnamesrv 1234567891011121314151617181920$ docker run -d nginx:alpine6376e2649ef2d4a6073b977fcc4408f7a3f21b6f32775b42be85711b989dd6ce$ docker run -d --name redis_srv redis2a79d491ecb3108b07df7d369dfe8abc6ac314efc2054951ef7b77e0deba0584$ docker run -it --name ubuntu ubuntu sh# cat /etc/o...
avatar
zhongmingmao
Focus on Infrastructure.
Articles
675
Tags
207
Categories
99
Announcement
Things are always unexpected!
Recent Posts
Microservices - MSE V1
Microservices - MSE V12026-09-01
Agent Infra - Agentic Database V1
Agent Infra - Agentic Database V12026-08-23
Agent Infra - Cloud Agents V8
Agent Infra - Cloud Agents V82026-08-22
Agent Infra - Cloud Agents V7
Agent Infra - Cloud Agents V72026-08-22
Agent Infra - Cloud Agents V6
Agent Infra - Cloud Agents V62026-08-21
© 2015 - 2026 By zhongmingmao
Life is like a box of chocolates. You can't know what you'll eat until you open it.