Tag: Docker

Docker 容器备份及还原

Docker 分别有映像档 (Image) 容器 (Container) 的概念, Docker Image 是一个预先包装好的唯读模版, 用作建立 Docker Container, 以下是备份及还原 Docker container 的步骤。 1. Docker Container 备份 先用 “docker ps” 指令查看正在执行的 Container, 取得 Container 的名称及 ID, …

用 Docker 快速安装 Apache, MySQL, PHP(LAMP)

以前要架设 LAMP (Linux, Apache, MySQL/MariaDB, PHP) 环境要经过一番安装及设定, Docker 可以使用一些预先设定好的映像档, 那么在安装时就可以节省很多时间。 以下会介绍在 RHEL 及 CentOS 用 Docker 安装预先制作好的映像档, 架设 LAMP 环境。 在安装 Docker 前先更新一下 YUM Repository: # yum -y update …

Ubuntu 安装 Docker

Docker 是以容器 (container) 为框架的应用程式自动部署工具, 以下是在 Ubuntu 安装 Docker 的步骤: 在安装 Docker 前先更新一下 apt-get Repository # apt-get update 更新 apt-get Repository 后可以安装 Docker 及其相关套件: # apt-get -y install docker.io 执行以下指令以建立 …

RHEL / CentOS 7 安装 Docker

Docker 是以容器 (container) 为框架的应用程式自动部署工具, 以下是在 RHEL 及 CentOS 7 安装 Docker 的步骤: 在安装 Docker 前先更新一下 YUM Repository: # yum -y update 更新 YUM Repository 后可以安装 Docker 及其相关套件: # yum …