linux – Docker容器:未找到lsmod

如何在Docker上运行的Ubuntu 14中安装lsmod和modprobe?我需要在容器中安装设备驱动程序,但首先我需要这些命令.

(泊坞窗图像最初来自码头中心,来自tomcat:7图像).

解决方法:

根据@ lan-Abbott评论.问题解决了.

user@host:# apt-get install kmod
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libkmod2
The following NEW packages will be installed:
  kmod
The following packages will be upgraded:
  libkmod2
1 upgraded, 1 newly installed, 0 to remove and 249 not upgraded.
Need to get 135 kB of archives.
After this operation, 212 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  libkmod2 kmod
Install these packages without verification? [y/N] y
Get:1 http://httpredir.debian.org/debian/ unstable/main libkmod2 amd64 22-1.1 [47.9 kB]
Get:2 http://httpredir.debian.org/debian/ unstable/main kmod amd64 22-1.1 [86.6 kB]
Fetched 135 kB in 10s (12.8 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 20886 files and directories currently installed.)
Preparing to unpack .../libkmod2_22-1.1_amd64.deb ...
Unpacking libkmod2:amd64 (22-1.1) over (18-3) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Setting up libkmod2:amd64 (22-1.1) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Selecting prevIoUsly unselected package kmod.
(Reading database ... 20886 files and directories currently installed.)
Preparing to unpack .../archives/kmod_22-1.1_amd64.deb ...
Unpacking kmod (22-1.1) ...
Processing triggers for systemd (215-17+deb8u4) ...
Setting up kmod (22-1.1) ...
Processing triggers for systemd (215-17+deb8u4) ...


user@host#:ls /sbin/
        modinfo           insmod             lsmod      .... ....  

相关文章

Docker是什么Docker是 Docker.Inc 公司开源的一个基于 LXC技...
本文为原创,原始地址为:http://www.cnblogs.com/fengzheng...
镜像操作列出镜像:$ sudo docker imagesREPOSITORY TAG IMA...
本文原创,原文地址为:http://www.cnblogs.com/fengzheng/p...
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改...
在Docker中,--privileged 参数给予容器内的进程几乎相同的权...