windows安装了docker,docker中安装了centos,怎么用xshell连接这个centos?
λ docker pull centos //下载镜像https://hub.docker.com/_/centos/ λ docker images //查看镜像 REPOSITORY TAG IMAGE ID CREATED SIZE centos latest 75835a67d134 6 days ago 200MB docker4w/nsenter-dockerd latest cae870735e91 11 months ago 187kB λ docker run --name GoWeb --privileged=true -itdv d:/workspace/go_work/:/var/www/ 75835a67d134 /bin/bash //运行容器 0e2801cbb8bf694719ebd2169ecb7a4bd0ef7ad0aae35f1ad8ec4c627d073841 λ docker attach GoWeb //登录容器 [root@0e2801cbb8bf /]#
问题:
怎么用xshell登录这个centos容器?
相关分类