『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 6377|回复: 4

[技术探讨] 求救~~安装docker碰到的问题

[复制链接]

5

主题

58

帖子

336

积分

中级会员

Rank: 3Rank: 3

积分
336
金钱
278
HASS币
0
发表于 2018-11-15 10:24:58 | 显示全部楼层 |阅读模式
本帖最后由 lengz 于 2018-11-15 10:29 编辑

使用的是树莓派2代,一直运行正常,不知哪根筋错了,做了一个update,结果docker启动不起来了。折腾了一天无果,决定重装。结果发现重装也不行。搞不定了,向各位求救。
下面是重新烧录的系统,仅使用官方脚本安装docker之后


root@raspberrypi:/home/pi# uname -a
Linux raspberrypi 4.14.50+ #1122 Tue Jun 19 12:21:21 BST 2018 armv6l GNU/Linux

root@raspberrypi:/home/pi# sudo service docker start
Job for docker.service failed because a fatal signal was delivered causing the control process to dump core.
See "systemctl status docker.service" and "journalctl -xe" for details.

root@raspberrypi:/home/pi# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: core-dump) since Thu 2018-11-15 10:27:01 CST; 18s ago
     Docs: https://docs.docker.com
  Process: 714 ExecStart=/usr/bin/dockerd -H unix:// (code=dumped, signal=SEGV)
Main PID: 714 (code=dumped, signal=SEGV)
      CPU: 598ms

Nov 15 10:27:00 raspberrypi systemd[1]: Failed to start Docker Application Container Engine.
Nov 15 10:27:00 raspberrypi systemd[1]: docker.service: Unit entered failed state.
Nov 15 10:27:00 raspberrypi systemd[1]: docker.service: Failed with result 'core-dump'.
Nov 15 10:27:01 raspberrypi systemd[1]: Stopped Docker Application Container Engine.

root@raspberrypi:/home/pi# journalctl -xe
Nov 15 10:26:59 raspberrypi systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit docker.service has begun starting up.
Nov 15 10:26:59 raspberrypi systemd[1]: Started containerd container runtime.
-- Subject: Unit containerd.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit containerd.service has finished starting up.
--
-- The start-up result is done.
Nov 15 10:27:00 raspberrypi systemd[1]: docker.service: Main process exited, code=dumped, status=11/SEGV
Nov 15 10:27:00 raspberrypi systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit docker.service has failed.
--
-- The result is failed.
Nov 15 10:27:00 raspberrypi systemd[1]: docker.service: Unit entered failed state.
Nov 15 10:27:00 raspberrypi systemd[1]: docker.service: Failed with result 'core-dump'.
Nov 15 10:27:00 raspberrypi sudo[686]: pam_unix(sudo:session): session closed for user root
Nov 15 10:27:01 raspberrypi systemd[1]: containerd.service: Main process exited, code=dumped, status=4/ILL
Nov 15 10:27:01 raspberrypi systemd[1]: containerd.service: Unit entered failed state.
Nov 15 10:27:01 raspberrypi systemd[1]: containerd.service: Failed with result 'core-dump'.
Nov 15 10:27:01 raspberrypi systemd[1]: Stopped Docker Application Container Engine.
-- Subject: Unit docker.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit docker.service has finished shutting down.
lines 1350-1384/1384 (END)




回复

使用道具 举报

5

主题

58

帖子

336

积分

中级会员

Rank: 3Rank: 3

积分
336
金钱
278
HASS币
0
 楼主| 发表于 2018-11-15 14:49:58 | 显示全部楼层
帮帮忙吧~~
回复

使用道具 举报

0

主题

26

帖子

177

积分

注册会员

Rank: 2

积分
177
金钱
151
HASS币
0
发表于 2018-12-15 21:18:21 | 显示全部楼层
up。同样问题,楼主解决了吗?
回复

使用道具 举报

0

主题

26

帖子

177

积分

注册会员

Rank: 2

积分
177
金钱
151
HASS币
0
发表于 2018-12-16 01:11:58 | 显示全部楼层
楼主,我爬了一晚上的文。这个解决不了,只能降级。
还有安装Docker的一个错误解决方法
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built.
sudo nano /usr/src/aufs-4.9+20161219/dkms.conf

删除或注释掉下面这一行代码
BUILD_EXCLUSIVE_KERNEL="^4.9.*" 


卸载docker然后重装
sudo apt-get purge docker-ce -y

安装这个版本
sudo apt-get install docker-ce=18.06.1~ce~3-0~raspbian


相关文章
https://github.com/docker/docker-install/issues/37
https://github.com/moby/moby/issues/38175
https://github.com/docker/for-linux/issues/490
回复

使用道具 举报

5

主题

58

帖子

336

积分

中级会员

Rank: 3Rank: 3

积分
336
金钱
278
HASS币
0
 楼主| 发表于 2018-12-19 16:21:28 | 显示全部楼层
冻曰恋函 发表于 2018-12-16 01:11
楼主,我爬了一晚上的文。这个解决不了,只能降级。
还有安装Docker的一个错误解决方法

太感谢了,我买了新的3代树莓派,目前没有问题了。等我在2代上试一下你的方法。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 06:19 , Processed in 0.056430 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表