docker官网中文(Docker系列 WordPress系列 搭建WordPress个人博客)

:暂无数据 2026-06-26 11:50:08 :0

docker官网中文(Docker系列 WordPress系列 搭建WordPress个人博客)

这篇文章给大家聊聊关于docker官网中文,以及Docker系列 WordPress系列 搭建WordPress个人博客对应的知识点,希望对各位有所帮助,不要忘了收藏本站哦。

本文目录

Docker系列 WordPress系列 搭建WordPress个人博客

通过 Docker系列 你需要个人博客吗 ,你基本上已经确定自己要不要玩一个WordPress个人博客了。如果你需要的话,就来看一下怎么安装WordPress个人博客吧!

注意: 目前不太建议在未开放443端口的机器上安装Docker版WordPress 。经过测试,如果要在没有开放443/80端口的服务器上给wordpress布署反向代理和ssl证书是非常困难的,这个困难主要来于wordpress本身对于安全性的控制。通过调试nginx或可成功,但目前基于Nginx proxy manager(非80/非443端口)的管理方拦枣式暂时还未取得成功。当然,更重要的原因是, 如果你的博客地址有个端口号,扮衡困会给人一种很不正式的感觉 。

下面开始安装吧!

我是在自己的VPS上进行测试的:

新建文件 docker-compose.yml :

添加以下内容:

直接上线服务

在ddns-go或者域名托管后台设置好 blog.exampledomain.com 的动态域名解析(指向nas的ip)。

在NPM中设置好反向代理。如下图所示:

***隐藏网址***

***隐藏网址***

这个是厅念选语言的。我们选择 简体中文 。点击 Continue 继续下一步。

这里按需填写相关信息。可以用bitwarden生成一个强密码。对于这一项 对搜索引擎的可见性 ,我建议你不要打勾,以后搜索引擎可以找到我们的博客。**如果你的博客非常私密,你就打勾吧!**最后点击 安装WordPress 进入下一步。类似于:

最后成功了!你就按 登录 直接登录即可:

默认的后台就是长这样:

在VPS里通过Docker来安装WordPress真的太简单了。没有任何特殊设置。

当然,用非443端口的机器就自求多福了(~ ̄▽ ̄)~

WordPress到这里已经是安装成功了。以后我们会讲怎么进行设置的!

最后不要忘记,用 duplicati 备份你的WordPress站点喔!还记得怎么用吗?

后续更多内容敬请期待!

Docker入门

docker概念
docker意为码头工人(Dock Worker),即从船上装卸货物的人。这与它的性质非常贴切。

docker 官网是这样解释自己的,

目前阿里,京东,腾讯早已将docker应用到生产环境。

docker 历史

Docker 公司起初是一家名为 dotCloud 的平台即服务(Platform-as-a-Service, PaaS)提供商。

底层技术上,dotCloud 平台利用了 Linux 容器技术。为了方便创建和管理这些容器,dotCloud 开发了一套内部工具,之后被命名为“Docker”。Docker就是这样诞生的!

2013年,dotCloud 的 PaaS 业务并不景气,公司需要寻求新的突破。于是他们聘请了 Ben Golub 作为新的 CEO,将公司重命名为“Docker”,放弃dotCloud PaaS 平台,怀揣着“将 Docker 和容器技术推向全世界”的使命,开启了一段新的征程。

如今 Docker 公司被普遍认为是一家创新型科技公司,据说其市场价值约为 10 亿美元。Docker 公司已经通过多轮融资,吸纳了来自硅谷的几家风投公司的累计超过 2.4 亿美元的投资。

docker 特征

docker 核心概念

docker镜像是一系列文件,它起源于linux联合文件系统,通过分层实现镜像文件的姿谈世存储。

容器本质上是一个进程,你可以把它想象成虚拟机但是它跟虚拟机完全不同。

docker仓库在hub.docker.com
,当迹肢然国内有163,网易蜂巢镜像。如果是private的就需要侍乱自己搭建镜像中心了。

docker工作流程

如上图,docker的工作流程大致是,

docker的网络
docker的关键在于容器内部与宿主机的通信,我们知道的有三种类型,Bridge 独立网络,Host与宿主机使用同一网络,None无网络。
参照: Docker四种网络模式 - (jianshu.com)

Docker pull NAME{:TAG} 镜像名称:版本

Docker images

Docker run

Docker rm NAME

docler exec -it backend-tomcat bash

以定制一个 nginx 镜像(构建好的镜像内会有一个 /usr/share/nginx/html/index.html 文件)

注意:Dockerfile 的指令每执行一次都会在 docker 上新建一层。所以过多无意义的层,会造成镜像膨胀过大。

所以可以以 && 符号连接命令,这样执行后,只会创建 1 层镜像。

具体的指令参考: Docker Dockerfile | 菜鸟教程 (runoob.com)

docker有中文吗

解决docker
如果在Docker中采用 docker searchcentos 采用docker pull docker.io/centos 下载基础镜像 这个镜像是不支持中文的,可以采用docker attach 容器ID进入容器后采

CentOS8.1安装docker

***隐藏网址***
***隐藏网址***
国内镜像站:阿乎丛里云

如果使用超级管理员登录,不需要在命令前加sudo

1.安装必要的一些系统工具

2.添加软件源信息(由于国内使用官网的太慢了,这里使用阿里的资源库来加速)

3.更新 yum 缓闹含存

4.更新并安装 Docker-CEsudo

5.查看安装版本

6.开启Docker服务

执行sudo yum -y install docker-ce安装docker命令时出错,液顷笑提示:containerd.io版本过低。具体如下:

解决方法:单独安装 containerd.io

之后重新安装docker

安装时出现下面的错误
Error: transaction check vs depsolve:rpmlib(PayloadIsZstd) 《= 5.4.18-1is needed by containerd.io-1.2.10-3.2.fc31.x86_64To diagnose the problem, try running: ’rpm -Va --nofiles --nodigest’.You probably have corrupted RPMDB, running ’rpm --rebuilddb’ might fix the issue.
这个是一般是版本依赖冲突,或者版本过高的问题,换为1.2.6-3.3版本即可

docker设置容器中的Ubuntu系统的语言

1:安装中文语言支持,并设置系统默认语言为中文

2:设置语言环境变量,不然docker默认设置的这三个环境变量是英文的

3:验游盯证是否生效

进入容器,蔽衫执行date命令能产神并和生以上输出即为生效

英语docker registry怎么翻译

英语 docker registry 翻译为中文意思是码头工人注册表。例如,I created a private docker registry and successfully pushed and pulled some images. 我创建了一个私人码头工人注册表并成功推拉的一些图片。

docker什么意思中文翻译

docker

美 

  • n.码头工人

  • 网络船坞工人;泊坞窗;搬运工人

  • 复数:dockers  
  • dockern.
  • 1.    码头工人册罩a person whose job is moving goods on and off ships    

    例句

  • 释义:全部,码头工人,船坞工人,泊坞窗,搬运工人枯伍更多例句筛选1.Some people turn up their noses if you say your father was a miner, OR docker.要是你说你父亲当过矿工或码头工人,就会有人瞧不起你。dict.ebigear.com

Docker 概述

***隐藏网址***

Docker is an open platform for developing, shipping, and running applications.
Docker enables you to separate your applications from your infrastructure so
you can deliver software quickly. With Docker, you can manage your infrastructure
in the same ways you manage your applications. By taking advantage of Docker’s
methodologies for shipping, testing, and deploying code quickly, you can
significantly reduce the delay between writing code and running it in production.

Docker provides the ability to package and run an application in a loosely isolated
environment called a container. The isolation and security allow you to run many
containers simultaneously on a given host. Containers are lightweight and contain
everything needed to run the application, so you do not need to rely on what is
currently installed on the host. You can easily share containers while you work,
and be sure that everyone you share with gets the same container that works in the
same way.

Docker provides tooling and a platform to manage the lifecycle of your containers:

Fast, consistent delivery of your applications

Docker streamlines the development lifecycle by allowing developers to work in
standardized environments using local containers which provide your applications
and services. Containers are great for continuous integration and continuous
delivery (CI/CD) workflows.

Consider the following example scenario:

Responsive deployment and scaling

Docker’s container-based platform allows for highly portable workloads. Docker
containers can run on a developer’s local laptop, on physical or virtual
machines in a data center, on cloud providers, or in a mixture of environments.

Docker’s portability and lightweight nature also make it easy to dynamically
manage workloads, scaling up or tearing down applications and services as
business needs dictate, in near real time.

Running more workloads on the same hardware

Docker is lightweight and fast. It provides a viable, cost-effective alternative
to hypervisor-based virtual machines, so you can use more of your compute
capacity to achieve your business goals. Docker is perfect for high density
environments and for small and medium deployments where you need to do more with
fewer resources.

Docker uses a client-server architecture. The Docker client talks to the
Docker daemon , which does the heavy lifting of building, running, and
distributing your Docker containers. The Docker client and daemon can
run on the same system, or you can connect a Docker client to a remote Docker
daemon. The Docker client and daemon communicate using a REST API, over UNIX
sockets or a network interface. Another Docker client is Docker Compose,
that lets you work with applications consisting of a set of containers.

The Docker daemon ( dockerd ) listens for Docker API requests and manages Docker
objects such as images, containers, networks, and volumes. A daemon can also
communicate with other daemons to manage Docker services.

The Docker client ( docker ) is the primary way that many Docker users interact
with Docker. When you use commands such as docker run , the client sends these
commands to dockerd , which carries them out. The docker command uses the
Docker API. The Docker client can communicate with more than one daemon.

A Docker registry stores Docker images. Docker Hub is a public
registry that anyone can use, and Docker is configured to look for images on
Docker Hub by default. You can even run your own private registry.

When you use the docker pull or docker run commands, the required images are
pulled from your configured registry. When you use the docker push command,
your image is pushed to your configured registry.

When you use Docker, you are creating and using images, containers, networks,
volumes, plugins, and other objects. This section is a brief overview of some
of those objects.

An image is a read-only template with instructions for creating a Docker
container. Often, an image is based on another image, with some additional
customization. For example, you may build an image which is based on the ubuntu
image, but installs the Apache web server and your application, as well as the
configuration details needed to make your application run.

You might create your own images or you might only use those created by others
and published in a registry. To build your own image, you create a Dockerfile
with a simple syntax for defining the steps needed to create the image and run
it. Each instruction in a Dockerfile creates a layer in the image. When you
change the Dockerfile and rebuild the image, only those layers which have
changed are rebuilt. This is part of what makes images so lightweight, small,
and fast, when compared to other virtualization technologies.

A container is a runnable instance of an image. You can create, start, stop,
move, or delete a container using the Docker API or CLI. You can connect a
container to one or more networks, attach storage to it, or even create a new
image based on its current state.

By default, a container is relatively well isolated from other containers and
its host machine. You can control how isolated a container’s network, storage,
or other underlying subsystems are from other containers or from the host
machine.

A container is defined by its image as well as any configuration options you
provide to it when you create or start it. When a container is removed, any changes to
its state that are not stored in persistent storage disappear.

The following command runs an ubuntu container, attaches interactively to your
local command-line session, and runs /bin/bash .

When you run this command, the following happens (assuming you are using
the default registry configuration):

Docker is written in the Go programming language and takes
advantage of several features of the Linux kernel to deliver its functionality.
Docker uses a technology called namespaces to provide the isolated workspace
called the container . When you run a container, Docker creates a set of
namespaces for that container.

These namespaces provide a layer of isolation. Each aspect of a container runs
in a separate namespace and its access is limited to that namespace.

Docker 找不到/etc/docker/daemon.json问题解决

总所周知的原因,中国直接访问dockerhub会非常的慢,所以需要配置镜像加速。

在配置dock镜像加速的时候需要把加速阿里的加速写入daemon.json文件。

但是奇怪的是别说daemon.json文件了,在etc目录下,我连docker目录都找不到。

于是访问官网: docker官网配置deamon

看到下面一句话:

To configure the Docker daemon using a JSON file, create a file at/etc/docker/daemon.jsonon Linux systems, orC:\ProgramData\docker\config\daemon.jsonon Windows. On MacOS go to the whale in the taskbar 》 Preferences 》 Daemon 》 Advanced.

然后写入加速配置:

{

***隐藏网址***

}

出现这句或者类似表明加速器配置成功

关于docker官网中文,Docker系列 WordPress系列 搭建WordPress个人博客的介绍到此结束,希望对大家有所帮助。

docker官网中文(Docker系列 WordPress系列 搭建WordPress个人博客)

本文编辑:admin

本文相关文章:


word2003目录怎么做(word2003如何自动生成目录)

word2003目录怎么做(word2003如何自动生成目录)

各位老铁们,大家好,今天由我来为大家分享word2003目录怎么做,以及word2003如何自动生成目录的相关问题知识,希望对大家有所帮助。如果可以帮助到大家,还望关注收藏下本站,您的支持是我们最大的动力,谢谢大家了哈,下面我们开始吧!

2026年10月10日 20:50

word页码从任意页开始(word中如何设置页码从指定页开始)

word页码从任意页开始(word中如何设置页码从指定页开始)

其实word页码从任意页开始的问题并不复杂,但是又很多的朋友都不太了解word中如何设置页码从指定页开始,因此呢,今天小编就来为大家分享word页码从任意页开始的一些知识,希望可以帮助到大家,下面我们一起来看看这个问题的分析吧!

2026年10月1日 05:30

microsoft word打印在哪里(word打印在哪里)

microsoft word打印在哪里(word打印在哪里)

本篇文章给大家谈谈microsoft word打印在哪里,以及word打印在哪里对应的知识点,文章可能有点长,但是希望大家可以阅读完,增长自己的知识,最重要的是希望对各位有所帮助,可以解决了您的问题,不要忘了收藏本站喔。

2026年8月30日 00:00

免费的u盘修复工具(u盘数据恢复 for mac版,相信我,这款免费工具你会爱不释手的)

免费的u盘修复工具(u盘数据恢复 for mac版,相信我,这款免费工具你会爱不释手的)

“免费的u盘修复工具”相关信息最新大全有哪些,这是大家都非常关心的,接下来就一起看看免费的u盘修复工具(u盘数据恢复 for mac版,相信我,这款免费工具你会爱不释手的)!

2026年8月6日 23:40

macromedia fireworks8序列号(Macromedia Fireworks 8序列号)

macromedia fireworks8序列号(Macromedia Fireworks 8序列号)

“macromedia fireworks8序列号”相关信息最新大全有哪些,这是大家都非常关心的,接下来就一起看看macromedia fireworks8序列号(Macromedia Fireworks 8序列号)!

2026年7月23日 14:20

commandline parse error(command line option syntax error.type cammand/for help.是什么意思)

commandline parse error(command line option syntax error.type cammand/for help.是什么意思)

今天给各位分享command line option syntax error.type cammand/for help.是什么意思的知识,其中也会对command line option syntax error.type camman

2026年10月7日 21:50

undergraduate degree(bachelor和undergraduate有什么区别么)

undergraduate degree(bachelor和undergraduate有什么区别么)

这篇文章给大家聊聊关于undergraduate degree,以及bachelor和undergraduate有什么区别么对应的知识点,希望对各位有所帮助,不要忘了收藏本站哦。

2026年10月3日 13:00

scanf为什么不安全(warning C4996: ’scanf’: This function or variable may be unsafe. Consider using scanf_s instead. To)

scanf为什么不安全(warning C4996: ’scanf’: This function or variable may be unsafe. Consider using scanf_s instead. To)

本篇文章给大家谈谈scanf为什么不安全,以及warning C4996: ’scanf’: This function or variable may be unsafe. Consider using scanf_s instead.

2026年9月27日 03:40

wordpress好用的插件(wordpress pdf插件哪个好用)

wordpress好用的插件(wordpress pdf插件哪个好用)

大家好,关于wordpress好用的插件很多朋友都还不太明白,不过没关系,因为今天小编就来为大家分享关于wordpress pdf插件哪个好用的知识点,相信应该可以解决大家的一些困惑和问题,如果碰巧可以解决您的问题,还望关注下本站哦,希望对

2026年9月24日 12:50

orderby命令功能(对order by的理解)

orderby命令功能(对order by的理解)

大家好,orderby命令功能相信很多的网友都不是很明白,包括对order by的理解也是一样,不过没有关系,接下来就来为大家分享关于orderby命令功能和对order by的理解的一些知识点,大家可以关注收藏,免得下次来找不到哦,下面我

2026年9月20日 12:50

更多文章:


应用程序菜单在哪(电脑的应用程序在哪里)

应用程序菜单在哪(电脑的应用程序在哪里)

大家好,关于应用程序菜单在哪很多朋友都还不太明白,不过没关系,因为今天小编就来为大家分享关于电脑的应用程序在哪里的知识点,相信应该可以解决大家的一些困惑和问题,如果碰巧可以解决您的问题,还望关注下本站哦,希望对各位有所帮助!

2026年10月15日 14:10

sumproduct函数计数方法(计数公式是什么)

sumproduct函数计数方法(计数公式是什么)

其实sumproduct函数计数方法的问题并不复杂,但是又很多的朋友都不太了解计数公式是什么,因此呢,今天小编就来为大家分享sumproduct函数计数方法的一些知识,希望可以帮助到大家,下面我们一起来看看这个问题的分析吧!

2026年10月15日 11:50

linux系统的特性(Linux系统的主要特点是什么)

linux系统的特性(Linux系统的主要特点是什么)

大家好,关于linux系统的特性很多朋友都还不太明白,不过没关系,因为今天小编就来为大家分享关于Linux系统的主要特点是什么的知识点,相信应该可以解决大家的一些困惑和问题,如果碰巧可以解决您的问题,还望关注下本站哦,希望对各位有所帮助!

2026年10月15日 10:50

知名女星孙侨璐于跨年夜,心梗猝死,年仅25岁!一一一写给年轻人?1月2日演员孙侨潞离世,说好的来日方长转眼就是别离

知名女星孙侨璐于跨年夜,心梗猝死,年仅25岁!一一一写给年轻人?1月2日演员孙侨潞离世,说好的来日方长转眼就是别离

其实演员孙侨潞的问题并不复杂,但是又很多的朋友都不太了解知名女星孙侨璐于跨年夜,心梗猝死,年仅25岁!一一一写给年轻人,因此呢,今天小编就来为大家分享演员孙侨潞的一些知识,希望可以帮助到大家,下面我们一起来看看这个问题的分析吧!

2026年10月15日 10:40

mariadb忘记密码(mysql用户密码忘记了怎么办)

mariadb忘记密码(mysql用户密码忘记了怎么办)

大家好,mariadb忘记密码相信很多的网友都不是很明白,包括mysql用户密码忘记了怎么办也是一样,不过没有关系,接下来就来为大家分享关于mariadb忘记密码和mysql用户密码忘记了怎么办的一些知识点,大家可以关注收藏,免得下次来找不

2026年10月15日 07:50

mysql端口号(如何查看自己数据库的端口号)

mysql端口号(如何查看自己数据库的端口号)

“mysql端口号”相关信息最新大全有哪些,这是大家都非常关心的,接下来就一起看看mysql端口号(如何查看自己数据库的端口号)!

2026年10月15日 06:30

printf打印16进制(C语言 十六进制怎么输出)

printf打印16进制(C语言 十六进制怎么输出)

大家好,今天小编来为大家解答以下的问题,关于printf打印16进制,C语言 十六进制怎么输出这个很多人还不知道,现在让我们一起来看看吧!

2026年10月15日 06:00

avantage怎么设置为中文(Avantage安装丢失GIT)

avantage怎么设置为中文(Avantage安装丢失GIT)

大家好,如果您还对avantage怎么设置为中文不太了解,没有关系,今天就由本站为大家分享avantage怎么设置为中文的知识,包括Avantage安装丢失GIT的问题都会给大家分析到,还望可以解决大家的问题,下面我们就开始吧!

2026年10月15日 03:00

ospf协议的作用是什么(OSPF路由协议的作用是什么)

ospf协议的作用是什么(OSPF路由协议的作用是什么)

“ospf协议的作用是什么”相关信息最新大全有哪些,这是大家都非常关心的,接下来就一起看看ospf协议的作用是什么(OSPF路由协议的作用是什么)!

2026年10月15日 02:40

方案对比特效js(在一个网页中如何实现两个JS特效)

方案对比特效js(在一个网页中如何实现两个JS特效)

各位老铁们好,相信很多人对方案对比特效js都不是特别的了解,因此呢,今天就来为大家分享下关于方案对比特效js以及在一个网页中如何实现两个JS特效的问题知识,还望可以帮助大家,解决大家的一些困惑,下面一起来看看吧!

2026年10月15日 02:10

最近更新

热门文章

标签列表