ssh连接docker容器

Ubuntu系统:

1、创建容器:

sudo nvidia-docker run -p 9022:22 --name="zbyang_mmd2" -v ~/remote_workspace:/remote_workspace -it mmdetection:local /bin/bash

2、更新软件包:apt-get update

apt-get install openssh-server

apt-get install vim

3、修改密码:https://blog.csdn.net/qq_37955980/article/details/83044482

CentOS 系统:https://jingyan.baidu.com/album/b2c186c8b9cacd846ff6ff5e.html?picindex=3

 

你可能感兴趣的:(ssh连接docker容器)