Tag: Docker
本文会示范如何删除没用的 image 镜像及 container 容器 删除 Docker Image Docker 提供了 rmi 参数, 可以用作删除 images, 但在执行前, 我们需要知道 image id, 先用以下指令找出 image id: # docker images 找到要删除的 image 的 image id …
Docker 分别有映像档 (Image) 容器 (Container) 的概念, Docker Image 是一个预先包装好的唯读模版, 用作建立 Docker Container, 以下是备份及还原 Docker container 的步骤。 1. Docker Container 备份 先用 “docker ps” 指令查看正在执行的 Container, 取得 Container 的名称及 ID, …
以前要架设 LAMP (Linux, Apache, MySQL/MariaDB, PHP) 环境要经过一番安装及设定, Docker 可以使用一些预先设定好的映像档, 那么在安装时就可以节省很多时间。 以下会介绍在 RHEL 及 CentOS 用 Docker 安装预先制作好的映像档, 架设 LAMP 环境。 在安装 Docker 前先更新一下 YUM Repository: # yum -y update …
Docker 是以容器 (container) 为框架的应用程式自动部署工具, 以下是在 Ubuntu 安装 Docker 的步骤: 在安装 Docker 前先更新一下 apt-get Repository # apt-get update 更新 apt-get Repository 后可以安装 Docker 及其相关套件: # apt-get -y install docker.io 执行以下指令以建立 …
Docker 是以容器 (container) 为框架的应用程式自动部署工具, 以下是在 RHEL 及 CentOS 7 安装 Docker 的步骤: 在安装 Docker 前先更新一下 YUM Repository: # yum -y update 更新 YUM Repository 后可以安装 Docker 及其相关套件: # yum …
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it. Ok