简介:Docker 容器技术。镜像 images;容器 container;仓库 repository 等,从安装到使用,入门教程
Docker简介
初认识
- build, ship, and run any app, anywhere
- 镜像,容器,仓库
- 集装箱,标准化,隔离
Docker架构
镜像 images
- 就是一个只读的模板,可以用来创建容器,可包含多个容器
- 使用 unionfs(Union File System) 来实现文件管理
容器 container
- 容器是从镜像中创建的运行实例,每个容器相互隔离
仓库 repository
- 仓库(Repository)是集中存放镜像文件的场所
Centos 6.5 安装Docker
1 | //1. 查看系统内核版本,需升级内核至3.x |
Docker 使用命令
- docker images
- docker ps
- docker pull hello-world
- docker run -d
- docker exec -it xxx bash