Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 150 章 Docker

目录

150.1. Installation
150.1.1. CentOS
150.1.2. Ubuntu
150.2. 镜像
150.2.1.
150.2.2. 获取镜像
150.2.3. 列出本地镜像
150.2.4. 创建镜像
150.2.5. 保存和载入镜像
150.2.6. 删除本地镜像
150.3. 容器
150.3.1. 启动与终止容器
150.3.2. 进入容器
150.3.3. 导出和导入容器
150.3.4. 删除容器
150.4. 仓库
150.5. docker 命令
150.5.1. run
150.5.2. start / stop / restart
150.5.3. ps
150.5.4. top
150.5.5. inspect
150.5.6. images
150.5.6.1. Getting a new image

https://www.docker.com

150.1. Installation

150.1.1. CentOS

yum install docker-io
service docker start
chkconfig docker on
docker pull centos:latest
docker images centos
			

test

docker run -i -t centos /bin/bash
			

150.1.2. Ubuntu

$ sudo apt-get update
$ sudo apt-get install docker.io
$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
$ sudo sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
			
$ sudo docker run -i -t ubuntu /bin/bash
			
comments powered by Disqus