阿里云上centos6安装docker问题!
来源:互联网 发布:js实现图片3d效果轮播 编辑:程序博客网 时间:2024/06/04 18:49
首先symbol dm_task_get_info_with_deferred_remove, version Base not defined
报错
解决办法:执行:yum upgrade device-mapper-libs 不知道问题解决了还是执行下面的解决了
## 下面命令都是以root用户执行## 查看内核版本uname -a# Debian 3.2.0-4 x86_64## 版本太低了 < 3.8## 参照 http://docs.docker.com/installation/debian/ 升级内核deb http://http.debian.net/debian wheezy-backports mainapt-get updateapt-get install -t wheezy-backports linux-image-amd64## 重启系统restart## 安装 docker 前,需要安装 curlapt-get install curl## 安装 dockercurl -sSL https://get.docker.com/ | sh## 重启 docker 服务.service docker restart## 运行 hello worlddocker run hello-world## 不出意外的话会出现# FATA[0000] Get http:///var/run/docker.sock/v1.18/containers/json?all=1: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? ## 这是docker服务没有启动service docker status# 会看到# [FAIL] Docker is not running ... failed!# 确实没启动## 显示启动一下docker -d ## 会看到# INFO[0000] +job serveapi(unix:///var/run/docker.sock) # INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) # INFO[0000] +job init_networkdriver() # Could not find a free IP address range for interface 'docker0'. Please configure its address manually and run 'docker -b docker0'# INFO[0000] -job init_networkdriver() = ERR (1) # FATA[0000] Shutting down daemon due to errors: Could not find a free IP address range for interface 'docker0'. Please configure its address manually and run 'docker -b docker0'## 因为阿里云把所有内网IP都占用了。所以要改下。vi /etc/network/interfaces## 把 "up route add -net 172.16.0.0 netmask 255.240.0.0 gw 10.170.191.247 dev eth0" 这一注释掉(在这一行最前面加'#')/etc/init.d/networking restartservice docker startservice docker status## 能看到 docker is running.docker run hello-world## 能看到 hello-world 启动了# Hello from Docker.# This message shows that your installation appears to be working correctly.## 把非管理员用户添加到docker组,方便使用useradd -G docker <user_login>
遇到不少坑,总结起来还是看官方文档靠谱。
0 0
- 阿里云上centos6安装docker问题!
- 阿里云Centos6.5安装配置docker
- 阿里云Centos6.6安装配置docker
- docker---centos6上安装
- Docker 在阿里云上安装
- 阿里云linux上安装docker
- 阿里云上ECS中安装docker
- CentOS6.5上安装Docker
- 阿里云 安装docker
- 阿里云 安装 docker
- 阿里云上CentOS6.5系统安装Nginx
- 阿里云上Centos6.6 x64安装docker1.4
- 在阿里云centos6.5系统上用docker搭建php环境的失败过程
- 阿里云cenos 6.5 模板上安装 docker
- 阿里云 ubuntu 14.04 模板上安装 docker
- 在阿里云的CentOS上安装docker
- ECS上安装docker运行阿里云日志服务demo
- 在centos6.5上安装docker
- 根据Value设置Radio选项的状态值
- 哈弗曼编码
- Android APK瘦身/减小包体
- Palindrome Linked List
- pl/sql 创建并执行oralce存储过程,并返回结果集
- 阿里云上centos6安装docker问题!
- LeetCode 350:Intersection of Two Arrays II
- View的绘制
- iOS创建管理当前账号的单例类
- EDitText
- Gson
- ubuntu安装maven仓库nexus - 1
- Linux 查看linux是64位还是32位
- WM算法原理与代码实现(模式匹配)