我尝试按照Offical docs
在具有OracleLinux 6的虚拟服务器上安装docker我将我的内核更新为uekr 4
#uname -r
4.1.12-61.1.19.el6uek.x86_64
这是“泊坞版”
#docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
当我启动守护进程时,它会给出正常但它会立即死亡。
#service docker start
Starting docker: . [ OK ]
#service docker status
docker dead but subsys locked
这是日志
\nWed Nov 23 07:53:00 GMT 2016\n
time="2016-11-23T07:53:00.610036664Z" level=info msg="libcontainerd: new containerd process, pid: 5114"
time="2016-11-23T07:53:00.649075962Z" level=warning msg="containerd: low RLIMIT_NOFILE changing to max" current=1024 max=4096
time="2016-11-23T07:53:01.690428304Z" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section."
time="2016-11-23T07:53:01.766503952Z" level=warning msg="devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored."
time="2016-11-23T07:53:01.788944031Z" level=info msg="[graphdriver] using prior storage driver \"devicemapper\""
time="2016-11-23T07:53:01.793561685Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2016-11-23T07:53:01.794228177Z" level=warning msg="mountpoint for pids not found"
time="2016-11-23T07:53:01.794714149Z" level=info msg="Loading containers: start."
time="2016-11-23T07:53:01.996320180Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
time="2016-11-23T07:53:02.101877068Z" level=fatal msg="Error starting daemon: Error initializing network controller: Error creating default \"bridge\" network: package not installed"
它说包没有安装,但是当我运行sudo modinfo bridge
时,它会显示模块。我还缺少其他任何套餐吗?
我尝试在/ etc / sysconfig / docker中设置env变量。
我尝试通过二进制文件安装。
我尝试创建用户并将其添加到docker组。
我尝试了很多其他解决方案,比如
没什么办法!!任何人都可以帮助我吗?答案 0 :(得分:0)
我没有测试Oracle Linux 6,但我相信你得到了这个issue。有人说它已在Docker 1.7.1 RC
中修复,但我还没有检查过。
我在CentOS 6或RehHat 6上遇到了轻微的问题。我的解决方法是安装docker-io-1.6.2-3.el6.x86_64.rpm
,而不是docker-engine
。
编辑yum.repos.d,请根据您的Oracle Linux 6
进行编辑cd /etc/yum.repos.d
wget http://www.hop5.in/yum/el6/hop5.repo
yum update
喜欢这个
rpm -ivh docker-io-1.6.2-3.el6.x86_64.rpm
service docker start