docker里启动 sshd 报错"Failed to get D-Bus connection: Operation not permitted"
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker里启动 sshd 报错"Failed to get D-Bus connection: Operation not permitted"相关的知识,希望对你有一定的参考价值。
参考技术A 最近测试 mysql分别跑在 docker 和 cgroup 的性能对比, 在 docker 里启动 sshd 时报错:问了下系统内核组同事,他解释说:因为1号进程是bash,不是systemd,所以通过 systemd 启动 sshd 服务不行;可以看看sshd.service 这里是什么命令参数,直接后台运行 sshd 这个二进制程序就行;最后成功起来,相关命令如下:
以上是关于docker里启动 sshd 报错"Failed to get D-Bus connection: Operation not permitted"的主要内容,如果未能解决你的问题,请参考以下文章
ssh使用报错: server responded "algorithm negotiation failed"