linux中Unable to find image ‘xxx’ locally解决办法

阿里云的VPS,安装的是镜像市场中的Docker运行环境(Ubuntu 64位)系统,用docker pull镜像的时候会报错,具体错误如下:

Unable to find image ‘busybox’ locally
Pulling repository registry
2016/08/24 16:29:53 Could not reach any registry endpoint

docker version 查看到的信息如下:

Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.3.1
Git commit (client): fa7b24f
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1
Git commit (server): fa7b24f

针对此错误的解决方法如下:

1,需要升级docker,具体命令如下:

sudo apt-get install docker.io

2,不过阿里的这个镜像源有点问题,升级的时候部分源是404,会报错。需要修改/etc/apt/sources.list文件,修改为如下内容:

deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe

3,apt-get clean && apt-get update

4,然后继续sudo apt-get install docker.io

升级完成之后就可以成功解决前文中提到的错误。

时间: 2024-09-05 08:48:20

linux中Unable to find image ‘xxx’ locally解决办法的相关文章

linux中mysql不能 REPAIR TABLE修复表解决办法

REPAIR TABLE语法 REPAIR TABLE `table_name` 修复表 REPAIR TABLE 用于修复被破坏的表 在linux中使用 REPAIR TABLE `table_name` pre_forum_thread 提示 xt.pre_forum_thread repair error 1 when fixing table xt.pre_forum_thread repair Error Can't change ownership of the file '/usr

linux中ssh可以登录sftp不能登录解决办法

我的服务器一直正常使用,平时使用secureCRT进行管理,使用secureFX进行文件的上传下载,突然有一天secureFX连接的时候出问题了,secureFX的日志如下: i SecureFX 版本 6.6.1.289 (Official Release - November 4, 2010) i 会话 00002 成功建立(为) session mydomain_218.245.0.54_cd.mydomain.com i SSH2Core version 6.6.0.289 i 正在连接

linux中/etc/resolv.conf经常自动改写解决办法

之前遇到过的情况有(DNS server 抓不对,且会被改写!) Ubuntu 6.10 (Edgy) 通过 ppp 拨号时,只抓到 ADSL Modem DHCP server IP. Ubuntu 7.04 (Feisty) 那个可恶的network-manager程序会定时抓 ADSL Modem DHCP server IP. VMWare 中的 Guest OS 以 NAT 网络 获取IP的时候,只抓到NAT DHCP server IP. 于是有很多人都跳出来问一个问题:"如何避免

linux中(ip_local_port_range)TIME_WAIT过多的解决办法

修改ip_local_port_range的方法 引用 [配置开机自动启动Nginx + PHP + MySQL]  代码如下 复制代码 # vi /etc/rc.local 在末尾增加以下内容:  代码如下 复制代码 /bin/sh /usr/local/webserver/mysql/bin/mysqld_safe --defaults-file=/usr/local/webserver/mysql/my.cnf & ulimit -SHn 51200 /usr/local/webserve

linux中tail No space left on device解决办法

原因与解决方法一,磁盘inode被用光导致 /data目录下无法创建文件 > touch a touch: cannot touch `a': No space left on device   磁盘只使用了61% > df -h   Filesystem Size Used Avail Use% Mounted on ... /dev/sda5 817G 466G 310G 61% /data ... inode被用光 > df -i   Filesystem Inodes IUsed

Winxp中无法安装新字体的终极解决办法

Winxp中无法安装新字体的终极解决办法 在windows 7越来越火的今天,相信还有很多朋友对XP系统情有独钟吧?北极鱼也算是一个了,主要是由于自己都很少使用安装版软件,电脑上基本上都是一些绿色软件.并且自己制作很多绿色软件都是在xp系统下测试绿化的,结果就导致部分绿色软件在windows 7下无法使用,再加上在运行速度已经习惯问题上感觉还是XP来的顺手,所以一直还在延续着XP的使用,(双系统,平时使用在XP下,玩玩就用windows 7), 一直来用的XP好好的,不过早些天,北极鱼也算是终于

getview()-android getView中 position=0多次出现的解决办法

问题描述 android getView中 position=0多次出现的解决办法 适配器中的getview @Override public View getView(int position, View convertView, ViewGroup parent) { View view = View.inflate(context,R.layout.home_item,null); TextView tv = (TextView) view.findViewById(R.id.homeIt

线程-关于Win32核心编程中DLL注入后无反应的解决办法

问题描述 关于Win32核心编程中DLL注入后无反应的解决办法 #include #include HINSTANCE hProcess; PWSTR pszLibFileRemote; HINSTANCE hThread; void StartInject(int ProcessID, char * DllName); void OverInject(char * DllName); void EnableDebugPrivilege(HANDLE processHandle); int ma

linux mysql 空间不够,都有什么解决办法,迁移好像是一种,有没有不迁移的办法,删除什么东西

问题描述 linux mysql 空间不够,都有什么解决办法,迁移好像是一种,有没有不迁移的办法,删除什么东西 解决方案 是服务器上吗 可以增加存储的容量 解决方案二: https://ruby-china.org/topics/18390 解决方案三: 定期备份数据 然后数据库清空