docker - ssh not working after docker installation
问题描述
I have created a virtual machine which has centos7 installed. I have installed docker CE successfully too using offical docs. After I add my user to docker group, I tried starting the docker service using this command:
sudo systemctl start docker
but it gets stuck & I am exited from putty. When I try to login again through putty, it says connection refused
.
ssh login through putty does not work unless I restart the system.
any suggestions?
解决方案
May be the he Docker default bridge (docker0) network conflicts with your internal network hosts access. Try to configure the default bridge to a different subnet.
Look at Use bridge networks documentation for details.
May be intersting this post too How do I configure the default bridge (docker0) network for Docker Engine to a different subnet?
推荐阅读
- python - python中的回溯//效率+内存布局
- swiftui - NavigationLink 子项中的“表单”选择器的 NavigationView 问题
- javascript - Laravel 8动态下拉菜单无法使用javascript
- php - 如何在 Laravel 中使用自定义列名和表名定义多对多关系
- td-engine - 为什么使用 python 连接器时,interp 函数在 TDengine 数据库中返回不同的值?
- java - 带有 GeckoDriver 的 WebDriver - 等待 45 秒等待 Firefox 启动超时
- highcharts - 从 highchart 图例符号中删除删除线
- google-sheets - 当从第一个实例中过滤其他数据时,Google 表格查询功能不会返回从第二行计算的备用行结果
- python - 如何在单个查询中在 Sqlalchemy 中发布更新?
- python - Beautifulsoup/Selenium:无法单击按钮并使用 python 获取 url