Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker启动jms_coco容器,sshd 2222端口报错 #223

Open
zhangpfly opened this issue Jun 5, 2019 · 1 comment
Open

docker启动jms_coco容器,sshd 2222端口报错 #223

zhangpfly opened this issue Jun 5, 2019 · 1 comment

Comments

@zhangpfly
Copy link

使用docker命令

docker run --name jms_coco -d -p 2222:2222 -p 5000:5000 -e CORE_HOST=http://192.168.32.134:8080 -e BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN jumpserver/jms_coco:1.5.0

启动完jms_coco,可以看到主机的2222端口已经被监听。但是ssh连接失败。

[root@ceshi ~]# ssh -p2222 [email protected]
ssh: connect to host 192.168.32.134 port 2222: Connection refused

进入容器启动ssh服务显示如下信息

[root@ceshi ~]# docker exec -it jms_coco /bin/bash 
[root@36405f2748cc opt]# systemctl restart sshd
Failed to get D-Bus connection: Operation not permitted

这个怎么解决?

@roamerop
Copy link

roamerop commented Apr 2, 2020

同求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants