问题描述
在host中安装nfs-kernel-server,然后修改exports文件共享目录。接着启动docker container(带–net=host --privileged),在其中安装nfs-common,最后运行命令showmount -e local
,显示如下错误:
clnt_create: RPC: Unknown host
解决方案
参考:https://github.com/boot2docker/boot2docker/issues/1262
在docker中安装库:netbase,这个问题得到解决。