使用docker hub加速器服务:DaoCloud

Docker Toolbox 介绍和安装

最近又开始用Docker,发现boot2docker已经升级成Docker Toolbox了,里面包含了:精简的Boot2Docker Linux镜像,用于运行Docker、MAC工具kitematic (由Docker不久前收购)和Docker Compose。

  • Docker Toolbox网站下载
  • 安装的时候还会自动migrate以前由boot2docker建的VM

基本的命令变化如下:





































































































boot2dockerdocker-machinedocker-machine description
initcreateCreates a new docker host.
upstartStarts a stopped machine.
sshsshRuns a command or interactive ssh session on the machine.
save-Not applicable.
downstopStops a running machine.
poweroffstopStops a running machine.
resetrestartRestarts a running machine.
configinspectPrints machine configuration details.
statuslsLists all machines and their status.
infoinspectDisplays a machine’s details.
ipipDisplays the machine’s ip address.
shellinitenvDisplays shell commands needed to configure your shell to interact with a machine
deletermRemoves a machine.
download-Not applicable.
upgradeupgradeUpgrades a machine’s Docker client to the latest stable release.

解决网速问题

由于访问外网环境恶劣,经常pull一个镜像要漫长痛苦的等待,为此,通常解决方案是在国外建VPS,使用Docker hub建私有镜像库;还有就是DaoCloud做Docekr国内镜像。

挖坑待填

Docker常用命令

挖坑待填

参考资料