Toybrick

标题: docker无法运行,已重新编译内核 [打印本页]

作者: lian    时间: 2020-5-8 18:28
标题: docker无法运行,已重新编译内核
因为之前docker就报错
  1. docker: Error response from daemon: failed to create endpoint goofy_solomon on network bridge: failed to add the host (veth91d8533) <=> sandbox (veth9987ad1) pair interfaces: operation not supported.
  2. ERRO[0000] error waiting for container: context canceled
复制代码
找资料是说内核缺少overlay模块,于是重新编译内核,并在config中添加CONFIG_OVERLAY_FS=y,编译后运行
  1. sudo  docker run hello-world
复制代码

仍然报错
  1. docker: Error response from daemon: failed to create endpoint goofy_solomon on network bridge: failed to add the host (veth91d8533) <=> sandbox (veth9987ad1) pair interfaces: operation not supported.
  2. ERRO[0000] error waiting for container: context canceled
复制代码
docker info显示
  1. Client:
  2. Debug Mode: false

  3. Server:
  4. Containers: 1
  5.   Running: 0
  6.   Paused: 0
  7.   Stopped: 1
  8. Images: 1
  9. Server Version: 19.03.8
  10. Storage Driver: overlay
  11.   Backing Filesystem: <unknown>
  12.   Supports d_type: true
  13. Logging Driver: json-file
  14. Cgroup Driver: cgroupfs
  15. Plugins:
  16.   Volume: local
  17.   Network: bridge host ipvlan macvlan null overlay
  18.   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
  19. Swarm: inactive
  20. Runtimes: runc
  21. Default Runtime: runc
  22. Init Binary: docker-init
  23. containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
  24. runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
  25. init version: fec3683
  26. Security Options:
  27.   seccomp
  28.    Profile: default
  29. Kernel Version: 4.4.189
  30. Operating System: Debian GNU/Linux 10 (buster)
  31. OSType: linux
  32. Architecture: aarch64
  33. CPUs: 6
  34. Total Memory: 3.754GiB
  35. Name: debian10.toybrick
  36. ID: DGV5:SNSY:H43W:LMM7:4FHR:LSKI:ALHC:CIYM:KHV6:IMUZ:YQHT:MZUV
  37. Docker Root Dir: /var/lib/docker
  38. Debug Mode: false
  39. Registry: https://index.docker.io/v1/
  40. Labels:
  41. Experimental: false
  42. Insecure Registries:
  43.   127.0.0.0/8
  44. Registry Mirrors:
  45.   https://docker.mirrors.ustc.edu.cn/
  46. Live Restore Enabled: false

  47. WARNING: No memory limit support
  48. WARNING: No swap limit support
  49. WARNING: No kernel memory limit support
  50. WARNING: No kernel memory TCP limit support
  51. WARNING: No oom kill disable support
  52. WARNING: bridge-nf-call-iptables is disabled
  53. WARNING: bridge-nf-call-ip6tables is disabled
  54. WARNING: the overlay storage-driver is deprecated, and will be removed in a future release.
复制代码


请问有大神遇到这个问题?能不能指教一下,非常感谢


作者: wpkj@2020    时间: 2020-5-9 09:29
请问一下你是在debian下安装docker
作者: lian    时间: 2020-5-9 09:42
wpkj@2020 发表于 2020-5-9 09:29
请问一下你是在debian下安装docker

是的,有什么办法吗
作者: lian    时间: 2020-5-9 14:04
已使用这个帖子http://t.rock-chips.com/forum.php?mod=viewthread&tid=1507&highlight=docker的rockchip_docker_defconfig.tar.gz的内核配置文件成功编译解决docker不可用问题
作者: wpkj@2020    时间: 2020-5-9 14:38
lian 发表于 2020-5-9 09:42
是的,有什么办法吗

请问一下,你是怎样配置docker环境的?有教程吗
作者: lian    时间: 2020-5-11 13:53
wpkj@2020 发表于 2020-5-9 14:38
请问一下,你是怎样配置docker环境的?有教程吗

docker官网https://docs.docker.com/engine/install/debian/
作者: zhaozhenxing    时间: 2020-12-10 15:27
lian 发表于 2020-5-11 13:53
docker官网https://docs.docker.com/engine/install/debian/

请问您搞定了吗?可以分享一下吗?谢谢
作者: lipandeng    时间: 2021-9-7 16:51
有需要通过修改内核文件重新编译内核来实现rk33990proD下运行docker引擎的,请参考 ,连接提供编译好的内核文件
RK3399ProD下安装Docker




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3