cloudv011——docker
NO.010——cloud.docker.v010
yanqi_vip
strove with none, for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart ——W.S.Landor
展开
-
CC00001.CloudDocker——|Cloud&Docker.V01|
一、课程大纲:### --- 课程大纲:~~~ docker简介~~~ docker安装~~~ docker容器管理~~~ docker镜像/仓库~~~ docker网络~~~ docker数据存储~~~ docker资源限制~~~ docker远程访问一、docker概述:容器是什么:##...原创 2022-03-26 23:38:00 · 83 阅读 · 0 评论 -
CC00002.CloudDocker——|Cloud&Docker.V02|
一、docker组件间的协同方式:二、docker化应用的存在方式:传统环境下的虚拟化:两个操作系统并配置应用应用B没有操作系统;把应用A的操作系统链接过来,应用B的操作系统的操作系统消耗资源若A的操作系统发生变化;加一个空白层;用来同步更改后的数据(若A崩了,依赖的系统全部崩溃)使用镜像可以解决这一问题,使用镜像容器,不同的空白层,保证每个...原创 2022-03-26 23:39:00 · 78 阅读 · 0 评论 -
CC00003.CloudDocker——|Cloud&Docker.V01|——|docker.rpm部署|
一、docker安装的三种方式(install for linux):### --- docker安装的三种方式(install for linux):~~~ script:脚本的方式;~~~ yum:yum方式安装;~~~ rpm:rpm包安装(推荐使用)二、docker部署### --- 方式一:script install[r...原创 2022-03-26 23:40:00 · 91 阅读 · 0 评论 -
CC00004.CloudDocker——|Cloud&Docker.V02|——|docker加速|阿里云镜像源|
一、docker加速配置:### --- docker加速配置[root@localhost ~]# cp /lib/systemd/system/docker.service /etc/systemd/system/docker.service[root@localhost ~]# ll /etc/systemd/system/docker.service -rw-r--r...原创 2022-03-26 23:40:00 · 110 阅读 · 0 评论 -
CC00005.CloudDocker——|Cloud&Docker.V03|——|运行wordPress|
一、docker化应用体验:在docker下部署一套wordPress运行环境:### --- WordPress运行环境需要如下软件的支持:~~~ ——> PHP 5.6 或更新软件~~~ ——> MySQL 5.6 或更新版本~~~ ——> Apache 和 mod_rewrite模块~~~ # docker r...原创 2022-03-26 23:41:00 · 92 阅读 · 0 评论 -
CC00006.CloudDocker——|Cloud&Docker.V04|——|基础操作|
一、docker基础概念及命令### --- docker三个重要概念:仓库/Repository;镜像/image;容器/Container~~~ # 注:~~~ 仓库:仓库是用来存储镜像环境的~~~ 镜像:封装好的运行环境;镜像可以被上传到仓库里~~~ 容器:是镜像运行完成以后得到的正在运行的运行环境docker run --nam...原创 2022-03-26 23:41:00 · 82 阅读 · 0 评论 -
CC00007.CloudDocker——|Cloud&Docker.V05|——|单一容器管理|
一、单一容器管理### --- 单一容器管理~~~ 每个容器被创建后,都会分配一个CONTAINER ID 作为容器的唯一标识,~~~ 后续对容器的启动/停止/修改/删除等所有操作,都是通过CONTAINER ID来完成,~~~ 偏向于数据库概念中的主键(yuanjian)docker ps --no-trunc ...原创 2022-03-27 14:51:00 · 87 阅读 · 0 评论 -
CC00008.CloudDocker——|Cloud&Docker.V06|——|多容器管理|
一、多容器管理:docker-compost### --- 多容器管理:docker-compost~~~ docker提倡理念是“一个容器一个进程”,假设一个服务需要由多个进程组成,~~~ 就需要多个容器组成一个系统,相互分工和配合对外提供完整的服务~~~ 比如:博客系统~~~ 组件1:mariadb~~~ 组件2:WordPre...原创 2022-03-27 14:52:00 · 115 阅读 · 0 评论 -
CC00009.CloudDocker——|Cloud&Docker镜像.V01|——|DockerFile语法|
一、docker镜像管理### --- 镜像特性:~~~ 容器在创建时需要指定镜像,每个镜像都由唯一的表示Image ID,~~~ 和容器的container ID 一样,默认是128位,可以使用前16位缩略形式,~~~ 也可以使用镜像名与版本号两部分组合唯一标识,~~~ 如果是省略版本号,默认使最新版本标签(latest)### --...原创 2022-03-27 14:52:00 · 102 阅读 · 0 评论 -
CC00010.CloudDocker——|Cloud&Docker镜像.V02|——|创建tomcat镜像|
一、测试没有封装好前台守护进程的镜像运行容器,容器未exited状态### --- library:官方的:官方的默认是一个底层的基础镜像;基础镜像包含一些工具和类库;~~~ 基础镜像可以通过操作系统tar打包,[root@localhost ~]# docker pull centos:6.86.8: Pulling from library/centos...原创 2022-03-27 14:53:00 · 91 阅读 · 0 评论 -
CC00011.CloudDocker——|Cloud&Docker镜像.V03|——|docker公有仓库构建|
一、docker公有仓库构建### --- docker镜像地址:https://hub.docker.com/~~~ 官方仓库构建~~~ 网易蜂巢构建公有仓库~~~ 在hub.docker.com构建公有仓库二、官方仓库构建教程:构建server端### --- 官方仓库构建教程:~~~ 客户端: 192.168...原创 2022-03-27 14:53:00 · 2543 阅读 · 0 评论 -
CC00012.CloudDocker——|Cloud&Docker镜像.V04|——|Harbor企业级Docker私有仓库|
一、Harbor企业级Docker私有仓库### --- 安装底层需求~~~ Python应该是2.7或者更高版本~~~ Docker引擎为1.10或更高版本~~~ Docker Compose需要为1.6.0或者更高版本### --- 版本版本包下载[root@localhost ~]# docker-compose: curl -L ...原创 2022-03-27 14:54:00 · 117 阅读 · 0 评论 -
CC00013.CloudDocker——|Cloud&Docker镜像.V05|——|Harbor架构|
一、Harbor原理说明:软件资源介绍### --- 软件资源介绍~~~ Harbor是 VMware公司开源的企业级 DockerRegistry项目,~~~ 项目地址为 https://github.com/vmware/harbor。~~~ 其目标是帮助用户迅速搭建一个企业级的 Dockerregistry服务。~~~ 它以...原创 2022-03-27 14:55:00 · 86 阅读 · 0 评论 -
CC00014.CloudDocker——|Cloud&Docker网络.V01|——|网络配置|
一、docker网络通讯### --- docker网络通讯~~~ 在通常情况下,Docker使用网桥(Bridge)与NAT的通信模式~~~ # 注:~~~ 同容器之间数据交换走的是docker0网桥。二、同一个网络域空间内数据交换走的是docker0网桥。### --- 使用访问外部网络:~~~ 容器想访...原创 2022-03-27 14:55:00 · 782 阅读 · 0 评论 -
CC00015.CloudDocker——|Cloud&Docker网络.V02|——|网络配置|
一、常见隔离方式(yuanjian)### --- 基础命令说明:docker network ls // 查看当前可用的网络类型docker network create -d // 类型 网络空间名称~~~ 类型分为: ...原创 2022-03-27 14:56:00 · 568 阅读 · 0 评论 -
CC00016.CloudDocker——|Cloud&Docker存储.V01|——|数据存储|
一、数据卷特性### --- 数据卷特性~~~ #Docker镜像由多个只读层叠加而成,启动容器时,docker会加载只读镜像层并在~~~ #镜像栈顶部添加一个读写层。~~~ 如果运行中的容器修改了现有的一个已经存在的文件,~~~ 那么改文件将会从读写层下面的读写层复制到读写层,该文件的只读版本依然存在,~~~ 只是已经被读写...原创 2022-03-27 14:57:00 · 617 阅读 · 0 评论 -
CC00017.CloudDocker——|Cloud&Docker存储.V02|——|存储驱动|
一、存储驱动### --- Docker存储驱动(storage driver)是docker的核心组件,~~~ 它是docker实现分成镜像的基础~~~ device mapper(DM):性能和稳定性存在问题,~~~ 不推荐生产环境中使用;DM会在centos7中较为老的版本中使用,~~~ 若是centos7的内核版本低于欧3.18版本;...原创 2022-03-27 14:57:00 · 79 阅读 · 0 评论 -
CC00018.CloudDocker——|Cloud&资源限制.V01|——|内存资源限制|
一、课程大纲### --- 课程提示:~~~ 默认情况下,docker会尽可能的去榨干我们的资源,CPU/内存/磁盘I/O;~~~ 若是docker的某一个进程出现问题,它会无休止的去向我们的宿主机去释放资源。~~~ 造成我们的应用停止或者是进程关闭,出现比较核心的故障。~~~ 对于真正的生产环境来说,容器的资源限制必须设置的。二、内存资...原创 2022-03-27 14:57:00 · 76 阅读 · 0 评论 -
CC00019.CloudDocker——|Cloud&资源限制.V02|——|CPU资源限制|
一、CPU资源限制### --- CPU资源限制~~~ Docker提供的COU资源限制选项可以在多核系统上限制容器能利用那些vCPU(虚拟CPU)。~~~ 而对容器最多能使用的CPU时间有两种限制范式(2核2线程(4个CPU),4核8线程(8个CPU),~~~ 8核16线程(16个CPU))一是有多个CPU密集型(CPU密集型:说明CPU使用特别频繁...原创 2022-03-27 14:58:00 · 144 阅读 · 0 评论 -
CC00020.CloudDocker——|Cloud&远程访问.V01|——|OCI|Runc|
一、远程访问:(yuanjian)### --- 远程访问:(yuanjian)~~~ 修改/etc/docker/daemon.json文件~~~ 无认证机制的,非常危险,不建议使用 "hosts": ["tcp://0.0.0.0:2375","unix://var/run/docker.sock"]example: docke...原创 2022-03-27 14:58:00 · 87 阅读 · 0 评论