在docker内,出错:fuse: device not found, try 'modprobe fuse' first
这个是因为访问设备节点:/dev/fuse,没有权限导致的,当然前提是已经存在/dev/fuse这个节点,如果没有可以通过:
sudo apt install libfuse2,
因此在运行docker容器时,增加权限(--privileged)即可:
docker run -it --privileged
docker image ID通过命令查看:
docker image list
docker image(镜像)与container(容器)的区别:
容器是镜像的实例化,即镜像相当于Windows/Ubuntu ISO文件,仅仅只是一个文件,要想使用电脑,还必须启动操作系统,而运行操作系统类似与运行容器,因此必须运行容器后才能使用docker image中的功能。
评论已关闭