<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; Docker</title>
	<atom:link href="http://www.osyunwei.com/archives/category/framework/virtualization/docker/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>使用Harbor搭建Docker私有镜像仓库</title>
		<link>https://www.osyunwei.com/archives/14664.html</link>
		<comments>https://www.osyunwei.com/archives/14664.html#comments</comments>
		<pubDate>Tue, 08 Oct 2024 06:20:57 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[Harbor]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=14664</guid>
		<description><![CDATA[Harbor简介： Harbor是由VMware公司开源的企业级的Docker Registry管理项目，它包括权限管理(RBAC)、LDAP、日志审核、管理界面、自我注册、镜像复制和中文支持等功能 可以用Harbor来搭建私有Docker镜像仓库 Harbor官网： https://goharbor.io/ https://github.com/goharbor/harbor 截止目前最新版本的离线安装包下载地址（需要科学上网）： https://github.com/goharbor/harbor/releases/download/v2.11.1/harbor-offline-installer-v2.11.1.tgz 部署Harbor需要提前安装docker和Docker-Compose Linux下安装部署Docker二进制版本 https://www.osyunwei.com/archives/13930.html 安装部署Harbor 1、为Harbor生成自签名证书 1.1. 生成CA私钥 openssl genrsa -out ca.key 2048 1.2. 生成自签名CA证书 openssl req -new -x509 -days 36500 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=Acme Root CA" -out ca.crt 1.3. 生成服务器私钥和CSR，CN=192.168.21.201 表示证书的通用名称 openssl req -newkey rsa:2048 -nodes -keyout server.key -subj "/C=CN/ST=GD/L=SZ/O=Acme, Inc./CN=192.168.21.201" -out server.csr 1.4. 使用CA签发服务器证书并添加SAN [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/14664.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/14664.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker swarm容器集群使用教程</title>
		<link>https://www.osyunwei.com/archives/11952.html</link>
		<comments>https://www.osyunwei.com/archives/11952.html#comments</comments>
		<pubDate>Thu, 28 Oct 2021 12:51:45 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11952</guid>
		<description><![CDATA[本教程中用到的配置文件请参考下面的连接 CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 搭建docker本地私有镜像仓库 https://www.osyunwei.com/archives/11928.html CentOS 7.x安装部署NFS文件共享服务器 https://www.osyunwei.com/archives/11942.html 一、Dcoker、Docker-Compose、Docker Swarm、Docker services、Docker stack简介 1、Dcoker Docker是一个容器引擎，容器最终是由Docker创建，运行在Docker中，其他相关的容器技术都是以Docker为基础 2、Docker-Compose Docker-Compose是一个编排多容器分布式部署的工具，Docker中有很多容器需要启动，如果一个一个的启动效率低下，Docker-Compose只需要编写一个yaml文件，在这个文件里面声明好要启动的容器，配置一些参数，执行一下这个文件，Docker就会按照你声明的配置去把所有的容器启动起来，Docker-Compose可以在单机上构建一组任务，也可以在集群内运行 3、Docker Swarm Docker Swarm是一款用来管理多台主机上的Docker容器的工具，可以启动容器，监控容器状态，启动新容器等服务，提供服务之间的负载均衡，Docker Swarm和K8s比较类似，但更加轻量，功能比kubernetes更少 4、Docker services Docker services只能部署单个服务，创建单容器，单容器是指一条命令只能操作一个容器，但是这条命令可以在Docker Swarm集群的每个节点上生效 5、Docker stack Docker stack就是基于Docker-Compose可以创建、操作多个容器，Docker-Compose可以在集群的每个节点上生效，Docker stack可以同时操作多个Docker services，docker-compose是在单机环境提供多容器编排工具，结合docker stack则实现了多主机容器编排服务 从Docker 1.12版本开始，swarm就集成到Docker中了，docker安装完成后默认就已经可以使用swarm了，swarm由docker官方开发并提供原生支持。 docker提供了服务容器化支持，而swarm则是进一步提供了管理整体服务容器能力的一套工具集，将以前单个独立的容器服务们进行了一个统一协调管理。 二、搭建docker-swarm集群环境 1、服务器准备 #准备一台管理master节点、两台工作node节点，总共三台服务器 #docker-swarm集群建议放在内网环境中 操作系统版本：CentOS 7.9.2009 x86_64 master01主机： ip地址：192.168.21.8 主机名称：master01.k8s node01节点 ip地址：192.168.21.9 主机名称：node01.k8s node02节点 ip地址：192.168.21.10 上面三台服务器都安装好docker环境 2、端口设置（测试环境建议关闭防火墙） [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11952.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11952.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Docker-Compose实现Docker容器编排</title>
		<link>https://www.osyunwei.com/archives/11903.html</link>
		<comments>https://www.osyunwei.com/archives/11903.html#comments</comments>
		<pubDate>Tue, 19 Oct 2021 11:55:28 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11903</guid>
		<description><![CDATA[本教程中用到的配置文件请参考下面的连接 Linux下使用Docker容器部署Web应用 https://www.osyunwei.com/archives/11855.html 1、什么是容器编排？ 所谓容器编排就是多个Docker容器的自动配置、协作和管理服务的过程，最后执行一个yaml文件，将文件中所定义的多个容器依次启动，这就是容器编排。 2、什么是Docker-Compose？ Docker-Compose是docker提供的一个命令行工具，用来定义和运行由多个容器组成的应用。使用Docker-Compose，我们可以通过yaml文件定义应用程序的各个服务，并由单个命令完成应用的创建和启动。 3、安装Docker-Compose Docker-Compose依靠Docker进行工作，必须确保已经安装了docker才能安装Docker-Compose CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html #把docker-compose安装在/usr/local/bin/目录下 #执行一下命令 curl -SL https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose #或者下面这两个命令都可以 curl -SL https://get.daocloud.io/docker/compose/releases/download/v2.0.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose curl -SL "https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose #添加执行权限 chmod +x /usr/local/bin/docker-compose #查看版本 docker-compose --version [root@master01 bin]# docker-compose --version Docker Compose version v2.0.1 4、编写yaml文件 mkdir -p /docker/data/docker-compose/conf #创建yaml文件存放目录 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11903.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11903.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile基于centos基础镜像构建mysql-8.0容器镜像</title>
		<link>https://www.osyunwei.com/archives/11696.html</link>
		<comments>https://www.osyunwei.com/archives/11696.html#comments</comments>
		<pubDate>Tue, 07 Sep 2021 07:57:17 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11696</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 下载mysql二进制安装包 wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.26-linux-glibc2.12-x86_64.tar.xz 三、构建mysql容器镜像 1、从docker hub拉取官方基础镜像 #我们用centos系统进行构建 https://hub.docker.com/_/centos?tab=tags&#038;page=1&#038;ordering=last_updated 选择centos:7.9.2009版本 docker pull centos:7.9.2009 #拉取系统镜像 docker image ls #查看docker镜像 docker run -itd --name centos centos:7.9.2009 #运行容器 docker ps #查看容器 [root@master01 src]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3c79f14bf82f centos:7.9.2009 "/bin/bash" 8 seconds ago Up 7 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11696.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11696.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile构建Nginx容器镜像</title>
		<link>https://www.osyunwei.com/archives/11624.html</link>
		<comments>https://www.osyunwei.com/archives/11624.html#comments</comments>
		<pubDate>Mon, 09 Aug 2021 08:29:39 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11624</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、构建Nginx容器镜像 1、准备软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 wget http://nginx.org/download/nginx-1.21.1.tar.gz #nginx wget http://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz #nginx扩展 wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz #nginx扩展 wget http://www.zlib.net/zlib-1.2.11.tar.gz #nginx扩展 2、从docker hub拉取构建所需要的基础系统镜像 #我们用centos系统进行构建 https://hub.docker.com/_/centos?tab=tags&#38;page=1&#38;ordering=last_updated 选择centos:7.9.2009版本 docker pull centos:7.9.2009 #拉取系统镜像 docker image ls #查看docker镜像 docker run -itd --name centos7.9 centos:7.9.2009 #运行容器 docker ps #查看容器 [root@master01 opt]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11624.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11624.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RancherOS安装教程</title>
		<link>https://www.osyunwei.com/archives/9591.html</link>
		<comments>https://www.osyunwei.com/archives/9591.html#comments</comments>
		<pubDate>Thu, 28 Jul 2016 03:19:12 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[Rancher]]></category>
		<category><![CDATA[RancherOS]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9591</guid>
		<description><![CDATA[RancherOS是由Rancher labs出品的一个专为Docker而生的精简版Linux， 提供了一个完整的Docker运行环境。 RancherOS系统镜像下载地址：https://github.com/rancher/os 系统要求：内存必须在2GB以上。 系统镜像启动完成之后登录账号：rancher  密码：rancher 安装图解： 系统镜像启动完成 登录用户名密码都是rancher 添加IP地址： sudo ip addr add 192.168.21.133/24 dev eth0 或者 sudo ifconfig eth0 192.168.21.133 netmask 255.255.255.0 添加网关： sudo route add default gw 192.168.21.2 修改DNS： sudo vi /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4 :wq! #保存退出 使用ssh客户端远程连接服务器 配置ssh远程秘钥登录，把rancheros安装到硬盘之后，必须使用秘钥登录，否则无法操作服务器，在控制台也无法使用密码登录。 ssh-keygen -t rsa #配置秘钥登录 将生成的公钥id_rsa.pub写到cloud-config.yml文件中 cd /home/rancher/.ssh/ cat id_rsa.pub #公钥 ssh-rsa [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9591.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9591.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
