标签:
1. Docker的安装
(这里的“安装docker”其实就是安装Docker Engine)
$ sudo apt-get intasll docker.io
- note: apt-get是ubuntu安装软件的管理工具
2. 确认docker engine是否安装成功
# Check that you have a working install
$ sudo docker info
3. 下载一个镜像(Download a pre-built image)
# Download an ubuntu image
$ sudo docker pull ubuntu
- ubuntu是镜像的名字,可以再Docker Hub中搜索所需要的镜像
$ sudo docker run -i -t ubuntu /bin/bash
- -i flag starts an interactive container.
- -t flag creates a pseudo-TTY that attaches
stdin
andstdout
标签:
原文地址:http://www.cnblogs.com/lutingting/p/5224261.html