meface/docs/article/devops/docker/docker_compose.md

26 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 二、Docker基本组成
date: 2021-01-06
author: ac
tags:
- Docker
categories:
- DevOps
---
> Docker的基本组成Docker架构
### 三个基本概念
1. 镜像ImageDocker镜像Image就相当于是一个root文件系统Linux。类似一个模版可以通过模版来创建容器服务例如tomcat镜像==》run==》tomcat01容器提供服务
2. 容器Conrainer镜像Image和容器Container的关系就像是面向对象程序设计中的类和实例一样镜像是静态的定义容器是镜像运行时的实例。容器可以被创建、启动、停止、删除、暂停等可以简单的理解为一个简易的Linux系统。
3. 仓库Repository仓库可看成代码控制中心用于保存镜像。仓库分为公有仓库和私有仓库默认是Docker Hub国外的国内也有容器服务器设置镜像加速
### 组织架构
Docker使用C/S架构模式使用远程API来管理和创建Docker容器
Docker容器通过Docker镜像来创建。
![Image](../images/docker01.png)