<?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/cloud/docker-cloud/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>Sun, 10 May 2026 14:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows系统下安装Docker环境</title>
		<link>https://www.osyunwei.com/archives/15454.html</link>
		<comments>https://www.osyunwei.com/archives/15454.html#comments</comments>
		<pubDate>Mon, 10 Mar 2025 06:57:14 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=15454</guid>
		<description><![CDATA[在Windows系统下运行Docker需要2个安装包 1、Docker Desktop on Windows Docker Desktop for Windows 提供了图形用户界面（GUI）以及一系列工具来简化 Docker 的使用过程。 Docker Desktop on Windows下载地址： https://docs.docker.com/desktop/setup/install/windows-install/ https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe 2、WSL安装包 安装Windows Subsystem for Linux (WSL) 后，可以直接在 Windows上运行Docker Desktop WSL安装包下载地址： https://github.com/microsoft/WSL/releases https://github.com/microsoft/WSL/releases/download/2.4.11/Microsoft.WSL_2.4.11.0_x64_ARM64.msixbundle 安装部署 1、安装Docker Desktop Installer.exe 安装完成后会重启系统 2、安装Microsoft.WSL_2.4.11.0_x64_ARM64.msixbundle 安装完成后点关闭 3、修改docker镜像源，添加国内源 点Apply&#38;restart 4、查看docker版本信息 5、使用docker拉取镜像 6、使用图形界面部署镜像 Ports：80 表示把宿主机的80端口映射到容器的80端口 7、测试访问容器 至此，Windows系统下安装Docker环境完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/15454.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » Windows系统下安装Docker环境<p><a rel="bookmark" href="https://www.osyunwei.com/archives/15454.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/15454.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker安装部署ELK Stack</title>
		<link>https://www.osyunwei.com/archives/13979.html</link>
		<comments>https://www.osyunwei.com/archives/13979.html#comments</comments>
		<pubDate>Fri, 18 Aug 2023 08:02:11 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[elk]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13979</guid>
		<description><![CDATA[什么是ELK： ELK主要由ElasticSearch、Logstash和Kibana三个开源工具组成，还有其它轻量型数据采集器，如filebeat等组成的日志收集分析系统。 Elasticsearch ：分布式搜索引擎，具有高可伸缩、高可靠、易管理等特点，可以用于全文检索、结构化检索和分析，并能将这三者结合起来，Elasticsearch 是用Java 基于 Lucene 开发，现在使用最广的开源搜索引擎之一。 Logstash ：数据收集处理引擎，支持动态的从各种数据源搜集数据，并对数据进行过滤、分析、丰富、统一格式等操作，然后存储以供后续使用。 Kibana ：可视化化平台。它能够搜索、展示存储在 Elasticsearch 中索引数据。使用它可以很方便的用图表、表格、地图展示和分析数据。 Filebeat：轻量级数据收集引擎。Filebeat 所占用的系统资源几乎是微乎及微。它是基于原先 Logstash-fowarder 的源码改造出来。换句话说：Filebeat就是新版的 Logstash-fowarder，也会是 ELK Stack 在 Agent 的第一选择。 安装说明： 1、Elasticsearch、Logstash、Kibana、Filebeat安装的版本号必须全部一致，不然会出现kibana无法显示web页面。 2、部署组件的服务器时间必须一致，否则会出现日志无法显示。 安装部署 1、安装elasticsearch 官方网站： https://www.elastic.co/cn/downloads/elasticsearch https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.9.1-linux-x86_64.tar.gz Elasticsearch的功能：搜索、全文检索、分析数据、处理海量数据PB,对海量数据进行近实时的处理(ES可以自动将海量数据分散到多台服务器上去存储和检索)、高可用高性能分布式搜索引擎数据库 Elasticsearch的应用场景：网页搜索、新闻搜索、商品标签、日志收集分析展示 elasticsearch的安装方式：二进制包（elasticsearch-8.9.1-linux-x86_64.tar.gz）安装，依赖于java，所以首先安装java环境-jdk、docker方式安装 我们使用docker方式安装 Linux下安装部署Docker二进制版本 https://www.osyunwei.com/archives/13930.html 1.1创建用于elk的网络 docker network create elk 1.2部署docker镜像 #创建Elasticsearch容器 docker run --restart=always  -d \ --name=elasticsearch \ -v es-data:/usr/share/elasticsearch/data \ -e [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13979.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13979.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下安装部署Docker二进制版本</title>
		<link>https://www.osyunwei.com/archives/13930.html</link>
		<comments>https://www.osyunwei.com/archives/13930.html#comments</comments>
		<pubDate>Mon, 24 Jul 2023 10:07:45 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=13930</guid>
		<description><![CDATA[准备工作 在安装Docker之前，确保已经关闭SELINUX、关闭或卸载firewall、创建了Docker用户组，并且安装了iptables防火墙，系统内核版本为Linux 3.10及其以上版本。 1、关闭selinux #执行以下命令 setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config 2、关闭firewall systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum -y remove firewalld 3、添加docker用户组 groupadd docker #添加普通用户myuser到docker组，使其具有docker命令的执行权限 sudo usermod -aG docker myuser sudo usermod -aG wheel  myuser #添加用户到wheel组，用户可以使用sudo权限 #刷新用户组 newgrp docker 4、安装iptables防火墙 yum -y install iptables-services #安装 systemctl [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/13930.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/13930.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS下安装二进制Docker-ce社区版本</title>
		<link>https://www.osyunwei.com/archives/12034.html</link>
		<comments>https://www.osyunwei.com/archives/12034.html#comments</comments>
		<pubDate>Fri, 03 Dec 2021 09:07:16 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12034</guid>
		<description><![CDATA[Docker是一个开源的应用容器引擎，目前分为社区版本（CE）和企业版本（EE），一般使用社区版本。 CentOS系统下Docker目前支持CentOS 7.x 8.x 版本，系统内核版本为Linux 3.10及其以上版本。 一、安装前准备工作 1、CentOS使用rpm包升级系统内核 https://www.osyunwei.com/archives/12038.html 2、CentOS系统关闭selinux #执行以下命令 setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config reboot #重启系统 /usr/sbin/sestatus -v #查看selinux状态，disabled表示关闭 [root@master01 ~]# /usr/sbin/sestatus -v SELinux status: disabled 3、防火墙设置 一般情况下访问Docker容器内部的应用需要设置宿主机端口映射功能，测试环境下可以开启iptables防火墙并清空防火墙规则， 正式生产环境建议开启防火墙，再按需开启相应端口号。 3.1关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 3.2安装iptables防火墙 yum install iptables-services #安装 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12034.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12034.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker Swarm集群使用NFS共享存储</title>
		<link>https://www.osyunwei.com/archives/11992.html</link>
		<comments>https://www.osyunwei.com/archives/11992.html#comments</comments>
		<pubDate>Wed, 03 Nov 2021 06:18:23 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11992</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 使用Docker-Compose实现Docker容器编排 https://www.osyunwei.com/archives/11903.html 一、通过在Docker Swarm集群内每台服务器挂载nfs目录实现共享存储 1、在nfs服务器配置好挂载目录 /nfs 192.168.21.0/24(insecure,rw,sync,no_subtree_check,no_root_squash) 2、在每台服务器上挂载nfs服务器目录，并设置开机自动挂载 mount -t nfs -o nolock,nfsvers=3,vers=3,soft,intr,bg,rw,rsize=32768,wsize=32768 192.168.21.8:/nfs /nfs 3、集群内所有服务器登录到私有仓库，下载好所需要的容器镜像 docker login hub.osyunwei.com [root@node02 /]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE hub.osyunwei.com/nginx 1.20.1 01dbf760f0dc 2 weeks ago 1.22GB hub.osyunwei.com/php-fpm 8.0.11 597d18ebb61d 2 weeks ago 2.66GB hub.osyunwei.com/mysql v8.0.26 b4d1dc08fa3f [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11992.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11992.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>搭建Docker本地私有镜像仓库</title>
		<link>https://www.osyunwei.com/archives/11928.html</link>
		<comments>https://www.osyunwei.com/archives/11928.html#comments</comments>
		<pubDate>Wed, 27 Oct 2021 12:02:42 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11928</guid>
		<description><![CDATA[在使用Docker service create创建容器时，Docker首先默认从Docker Hub官方去下载镜像，这很不方便，很多时候我们的镜像都是使用Dockerfile自定义私有镜像，不对外公开，而且为了安全期间docker可能在内外环境下运行，所以我们有必要搭建一套docker本地私有镜像仓库，以供整个内外集群环境使用。 下面我们使用docker官方提供的registry镜像搭建私有仓库 一、搭建非https访问的私有镜像仓库 #私有镜像仓库服务器ip和对应域名，集群内所有服务器都提前做好解析 vi /etc/hosts #添加以下解析 192.168.21.8 hub.osyunwei.com :wq! #保存退出 #下载镜像 docker pull registry:latest #创建镜像挂载目录 mkdir -p /docker/data/registry #创建容器 docker run -d -p 5000:5000 --name registry --restart always -v /docker/data/registry:/var/lib/registry registry:latest 参数说明： -p 5000:5000 #端口映射，前面是宿主机:后面是容器内 --name registry #容器名称 --restart always #宿主机重启后容器自启动 -v /docker/data/registry:/var/lib/registry #目录映射，容器被删除后仓库内的镜像不会丢失，默认情况下仓库在容器内的/var/lib/registry目录下 registry:lates #使用的镜像名称 #查看启动的容器 docker ps -a #默认Docker只支持https的地址，为了使用http协议的地址，集群内所有的服务器需要把私有仓库地址添加到daemon.json文件中 #在daemon.json文件中添加私有镜像仓库地址，注意要用逗号连接 cp [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11928.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11928.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Docker network进行Docker容器之间通信</title>
		<link>https://www.osyunwei.com/archives/11884.html</link>
		<comments>https://www.osyunwei.com/archives/11884.html#comments</comments>
		<pubDate>Mon, 18 Oct 2021 09:17:24 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11884</guid>
		<description><![CDATA[本教程中用到的配置文件请参考下面的连接 Linux下使用Docker容器部署Web应用 https://www.osyunwei.com/archives/11855.html 一、基础概念 1、默认状态下，创建好的容器之间通过容器内部的虚拟ip是能够相互ping通和访问的 2、因为容器有可能在停止、重启等操作后容器内部ip地址发生变化，从而导致连接失败 3、一般不使用容器的虚拟ip来进行通信，而是使用容器的名称（docker run --name）来相互通信 4、Docker容器使用[容器的名称]进行相互通信有两种方式：Link 单向访问和 Bridge 网桥双向访问 5、使用Link 单向访问，需要在创建容器的时候指定容器a和哪个容器进行link连接。 例如：docker run -d --name a --link b #容器b必须要存在 这个时候进入到容器a，ping容器b的名称，可以ping通， 但是，--link实现的是容器间的单向通信，我们进入到容器b，ping容器a的名称，则是ping不通的。 6、--link使用的是容器内的/etc/hosts解析名称的，可能因为容器的启动停止等操作损坏/etc/hosts，从而导致连接失败。 7、使用link强制了容器之间的依赖关系，集群环境下不易扩展。 8、Docker官方已经不建议使用link，而强烈推荐使用docker network 9、docker network ls #查看docker默认的三种网络模式bridge、host、null 10、我们一般使用Bridge网桥模式创建docker network 11、 #参数-d bridge my-bridge创建一个名称为my_bridge的网桥 docker network create -d bridge my-bridge #查看网桥 docker network ls #把容器加入网桥（容器与网桥绑定） docker network connect my-bridge mysqlv8.0.26 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11884.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11884.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下使用Docker容器部署Web应用</title>
		<link>https://www.osyunwei.com/archives/11855.html</link>
		<comments>https://www.osyunwei.com/archives/11855.html#comments</comments>
		<pubDate>Sun, 17 Oct 2021 08:35:55 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11855</guid>
		<description><![CDATA[本教程实现目的： 在CentOS 7.x系统下使用Docker分别安装nginx、php-fpm-mysql容器镜像，部署一套Web应用wordpress系统 一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、下载容器镜像 以下容器镜像是提前制作好并上传到阿里云镜像仓库 docker pull registry.cn-hangzhou.aliyuncs.com/osyunwei/nginx:1.20.1 #nginx容器镜像 docker pull registry.cn-hangzhou.aliyuncs.com/osyunwei/php-fpm:8.0.11 #php-fpm容器镜像 docker pull registry.cn-hangzhou.aliyuncs.com/osyunwei/mysql:v8.0.26 #mysql容器镜像 docker images #查看镜像 #修改镜像标签 docker tag 153f21624ecc nginx:1.20.1 docker tag 597d18ebb61d php-fpm:8.0.11 docker tag b4d1dc08fa3f mysql:v8.0.26 三、在宿主机创建用户和组以及容器映射目录 #在宿主机创建web运行用户和组 #创建nginx、php-fpm运行用户和组 groupadd www &#38;&#38; useradd -g www www -s /bin/false #创建mysql运行用户和组 groupadd mysql &#38;&#38; useradd -g [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11855.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11855.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile基于centos基础镜像构建mysql-5.6容器镜像</title>
		<link>https://www.osyunwei.com/archives/11688.html</link>
		<comments>https://www.osyunwei.com/archives/11688.html#comments</comments>
		<pubDate>Thu, 02 Sep 2021 12:43:28 +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=11688</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载mysql http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.48.tar.gz 2、下载cmake（编译工具） https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建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 centos7.9 centos:7.9.2009 #运行容器 docker ps #查看容器 [root@master01 src]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5ec501bf0524 centos:7.9.2009 "/bin/bash" 7 seconds ago Up [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11688.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11688.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile基于centos基础镜像构建mysql-5.5容器镜像</title>
		<link>https://www.osyunwei.com/archives/11684.html</link>
		<comments>https://www.osyunwei.com/archives/11684.html#comments</comments>
		<pubDate>Thu, 02 Sep 2021 03:10:27 +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=11684</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载mysql https://cdn.mysql.com/archives/mysql-5.5/mysql-5.5.62.tar.gz 2、下载cmake（编译工具） https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建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 centos7.9 centos:7.9.2009 #运行容器 docker ps #查看容器 [root@master01 src]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dfe6db7c2e06 centos:7.9.2009 "/bin/bash" 10 seconds ago Up [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11684.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11684.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile基于ubuntu基础镜像构建php-fpm容器镜像</title>
		<link>https://www.osyunwei.com/archives/11677.html</link>
		<comments>https://www.osyunwei.com/archives/11677.html#comments</comments>
		<pubDate>Sun, 22 Aug 2021 13:17:50 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11677</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载php http://mirrors.sohu.com/php/php-7.2.34.tar.gz 2、下载openssl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz 3、下载libmcrypt（php扩展） https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz 4、下载yasm（php扩展） http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz 5、t1lib（php扩展） http://download.freenas.org/distfiles/t1lib-5.1.2.tar.gz 6、适用于php 5.5.x及其以上版本 https://github.com/libgd/libgd/releases/download/gd-2.3.1/libgd-2.3.1.tar.gz 7、libvpx（gd库需要） https://github.com/webmproject/libvpx/archive/v1.10.0/libvpx-1.10.0.tar.gz 8、tiff（gd库需要） http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz 9、libpng（gd库需要） ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.37.tar.gz 10、freetype（gd库需要） https://download.savannah.gnu.org/releases/freetype/freetype-2.10.4.tar.gz 11、jpegsrc（gd库需要） http://distfiles.macports.org/jpeg/jpegsrc.v9d.tar.gz -O jpeg-9d.tar.gz 12、libzip（编译php需要） https://libzip.org/download/libzip-1.7.3.tar.gz 13、oniguruma（编译安装php7.4.x及其以上版本需要） https://github.com/kkos/oniguruma/archive/refs/tags/v6.9.7.1.tar.gz -O oniguruma-6.9.7.1.tar.gz 14、curl库（编译php需要） https://curl.se/download/curl-7.77.0.tar.gz 15、下载cmake（编译工具） https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建php-fpm容器镜像 1、从docker hub拉取官方基础镜像 #我们用ubuntu系统进行构建 https://hub.docker.com/_/ubuntu?tab=tags&#038;page=1&#038;ordering=last_updated 选择ubuntu:20.04版本 docker pull ubuntu:20.04 #拉取系统镜像 docker image [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11677.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11677.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile基于centos基础镜像构建php-fpm容器镜像</title>
		<link>https://www.osyunwei.com/archives/11663.html</link>
		<comments>https://www.osyunwei.com/archives/11663.html#comments</comments>
		<pubDate>Sat, 21 Aug 2021 10:35:06 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11663</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载php https://www.php.net/distributions/php-7.1.33.tar.gz 2、下载openssl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz 3、下载libmcrypt（php扩展） https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz 4、下载yasm（php扩展） http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz 5、t1lib（php扩展） http://download.freenas.org/distfiles/t1lib-5.1.2.tar.gz 6、适用于php 5.5.x及其以上版本 https://github.com/libgd/libgd/releases/download/gd-2.3.1/libgd-2.3.1.tar.gz 7、libvpx（gd库需要） https://github.com/webmproject/libvpx/archive/v1.10.0/libvpx-1.10.0.tar.gz 8、tiff（gd库需要） http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz 9、libpng（gd库需要） ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.37.tar.gz 10、freetype（gd库需要） https://download.savannah.gnu.org/releases/freetype/freetype-2.10.4.tar.gz 11、jpegsrc（gd库需要） http://distfiles.macports.org/jpeg/jpegsrc.v9d.tar.gz -O jpeg-9d.tar.gz 12、libzip（编译php需要） https://libzip.org/download/libzip-1.7.3.tar.gz 13、oniguruma（编译安装php7.4.x及其以上版本需要） https://github.com/kkos/oniguruma/archive/refs/tags/v6.9.7.1.tar.gz -O oniguruma-6.9.7.1.tar.gz 14、curl库（编译php需要） https://curl.se/download/curl-7.77.0.tar.gz 15、下载cmake（编译工具） https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建php-fpm容器镜像 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 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11663.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11663.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Docker下使用Dockerfile基于debian基础镜像构建php-fpm容器镜像</title>
		<link>https://www.osyunwei.com/archives/11659.html</link>
		<comments>https://www.osyunwei.com/archives/11659.html#comments</comments>
		<pubDate>Thu, 19 Aug 2021 10:54:38 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11659</guid>
		<description><![CDATA[一、CentOS 7.x 安装Docker-ce社区版本 https://www.osyunwei.com/archives/11592.html 二、准备安装软件包 cd /usr/local/src #建议先把需要安装的软件包下载到本地目录 1、下载php http://mirrors.sohu.com/php/php-7.0.33.tar.gz 2、下载openssl https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz 3、下载libmcrypt（php扩展） https://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz 4、下载yasm（php扩展） http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz 5、t1lib（php扩展） http://download.freenas.org/distfiles/t1lib-5.1.2.tar.gz 6、适用于php 5.5.x及其以上版本 https://github.com/libgd/libgd/releases/download/gd-2.3.1/libgd-2.3.1.tar.gz 7、libvpx（gd库需要） https://github.com/webmproject/libvpx/archive/v1.10.0/libvpx-1.10.0.tar.gz 8、tiff（gd库需要） http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz 9、libpng（gd库需要） ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.37.tar.gz 10、freetype（gd库需要） https://download.savannah.gnu.org/releases/freetype/freetype-2.10.4.tar.gz 11、jpegsrc（gd库需要） http://distfiles.macports.org/jpeg/jpegsrc.v9d.tar.gz 12、libzip（编译php需要） https://libzip.org/download/libzip-1.7.3.tar.gz 13、oniguruma（编译安装php7.4.x及其以上版本需要） https://github.com/kkos/oniguruma/archive/refs/tags/v6.9.7.1.tar.gz -O oniguruma-6.9.7.1.tar.gz 14、curl库（编译php需要） https://curl.se/download/curl-7.77.0.tar.gz 15、下载cmake（编译工具） https://cmake.org/files/v3.21/cmake-3.21.1.tar.gz 三、构建php-fpm容器镜像 1、从docker hub拉取官方基础镜像 https://hub.docker.com/_/debian?tab=tags&#038;page=1&#038;ordering=last_updated #我们使用debian进行构建 docker pull debian:stable #下载镜像 docker image ls #查看docker镜像 docker [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11659.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11659.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 7.x 安装Docker-ce社区版本</title>
		<link>https://www.osyunwei.com/archives/11592.html</link>
		<comments>https://www.osyunwei.com/archives/11592.html#comments</comments>
		<pubDate>Fri, 30 Jul 2021 12:47:31 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Docker]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=11592</guid>
		<description><![CDATA[Docker是一个开源的应用容器引擎，目前分为社区版本（CE）和企业版本（EE），一般使用社区版本。 CentOS系统下Docker目前支持CentOS 7.x 8.x 版本，系统内核版本为Linux 3.10及其以上版本。 一、安装前准备工作 1、CentOS 升级系统内核到最新版 https://www.osyunwei.com/archives/11582.html 2、CentOS系统关闭selinux #执行以下命令 setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config reboot #重启系统 /usr/sbin/sestatus -v #查看selinux状态，disabled表示关闭 [root@master01 ~]# /usr/sbin/sestatus -v SELinux status: disabled 3、防火墙设置 一般情况下访问Docker容器内部的应用需要设置宿主机端口映射功能，测试环境下可以开启iptables防火墙并清空防火墙规则， 正式生产环境建议开启防火墙，再按需开启相应端口号。 3.1关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 3.2安装iptables防火墙 yum install iptables-services [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/11592.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/11592.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
