有一个nfs盘挂载到本机,本机docker想用这个nfs盘存储。
docker run 的时候增加参数 --storage-opt size=30G
--storage-opt size=30G
dockerfile
centOS镜像的话,dockerfile 加一句: