「docker」问题集

1、安装

环境(win7 64),官网下载docker toolbox安装所需软件(会自动安装docker,virtual box等软件),安装运行不了,遇到如下问题:

问题1:

在win7 64上安装5.1.20版本后运行提示如下错误:

Failed to instantiate CLSID_VirtualBox w/ IVirtualBox, but CLSID_VirtualBox w/ IUnknown works.
PSDispatch looks fine. Weird.
返回 代码: E_NOINTERFACE (0x80004002) 
组件: VirtualBoxClientWrap 
界面: IVirtualBoxClient {d2937a8e-cb8d-4382-90ba-b7da78a74573} 

解决办法:

修改注册表
HKEY_CLASSES_ROOTCLSID{00020420-0000-0000-C000-000000000046}
InprocServer32 修改为C:Windowssystem32oleaut32.dll
HKEY_CLASSES_ROOTCLSID{00020424-0000-0000-C000-000000000046}
InprocServer32 修改为C:Windowssystem32oleaut32.dll

问题2:

初次启动时会自动更新Boot2Docker,

Default Boot2Docker ISO is out-of-date, downloading the latest release

但由于网络原因,很难下载,提示如下:

A connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because connec
ted host has failed to respond."

需要从官网下载对应Boot2Docker版本,官网:https://github.com/boot2docker/boot2docker/releases

然后复制到C:UsersAdministrator.dockermachinecache

2、添加加速器

官网下载镜像跟蜗牛一样,可以使用daocloud(官网www.daocloud.io)的加速,使用后下载速度明显快很多。

配置文件位于:C:UsersAdministrator.dockermachinemachinesdefaultconfig.json

3、基础ubuntu镜像缺失太多基础lib

下载lib #apt-get install -f

4、缺失libgtk-x11-2.0.so.0

apt-get install libgtk2.0-0:amd64

5、缺失libXss.so.1

apt-get install libxss1

6、缺失libgconf-2.so.4

apt-get install libgconf-2-4

7、缺失libasound.so.2

apt-get install libasound2

原文地址:https://www.cnblogs.com/ftrako/p/6738582.html