挂载/ proc时,Docker rootfs_linux.go权限被拒绝

我正在使用meteor-up部署到LXD容器内的docker实例。 当它试图启动一个MongoDB泊坞窗实例时,它会失败,并出现以下错误:

docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/vfs/dir/20a621a73755db3f4030bc67bbf7ff9540bd1d63bb348d8be440d8ca63d3c922\\\" at \\\"/proc\\\" caused \\\"permission denied\\\"\"".

我已经尝试部署作为ubuntu用户到我的LXD容器,并作为root ,并没有帮助。 这里显然有一些权限问题,但我不知道从哪里开始debugging这个问题。

根据https://discuss.linuxcontainers.org/t/having-trouble-using-docker/383这听起来像你可能需要设置security.nesting=true 。 停止容器( lxc stop deploy-container ),按照https://insights.ubuntu.com/2015/10/30/nested-containers-in-lxdconfiguration嵌套( lxc config set deploy-container security.nesting true )并且lxc start deploy-container