Docker Toolbox 介绍和安装
最近又开始用Docker,发现boot2docker已经升级成Docker Toolbox了,里面包含了:精简的Boot2Docker Linux镜像,用于运行Docker、MAC工具kitematic (由Docker不久前收购)和Docker Compose。
- 去Docker Toolbox网站下载
- 安装的时候还会自动migrate以前由boot2docker建的VM
基本的命令变化如下:
boot2docker | docker-machine | docker-machine description |
---|---|---|
init | create | Creates a new docker host. |
up | start | Starts a stopped machine. |
ssh | ssh | Runs a command or interactive ssh session on the machine. |
save | - | Not applicable. |
down | stop | Stops a running machine. |
poweroff | stop | Stops a running machine. |
reset | restart | Restarts a running machine. |
config | inspect | Prints machine configuration details. |
status | ls | Lists all machines and their status. |
info | inspect | Displays a machine’s details. |
ip | ip | Displays the machine’s ip address. |
shellinit | env | Displays shell commands needed to configure your shell to interact with a machine |
delete | rm | Removes a machine. |
download | - | Not applicable. |
upgrade | upgrade | Upgrades a machine’s Docker client to the latest stable release. |
解决网速问题
由于访问外网环境恶劣,经常pull一个镜像要漫长痛苦的等待,为此,通常解决方案是在国外建VPS,使用Docker hub建私有镜像库;还有就是DaoCloud做Docekr国内镜像。
挖坑待填
Docker常用命令
挖坑待填