Ali CVM uses docker to create a nginx container. As soon as it is started, the remote connection Xshell will be disconnected.

Today, I downloaded version 1.12.6 of docker, via yum using Ali CVM, and then downloaded a nginx image using docker.

there is no problem at this time, but when you use docker run to create a nginx container, you will disconnect the Xshell remote connection, but you can connect to the CVM in the Aliyun control background.

when you restart this CVM, you can connect to it by practicing Xshell,. (because the docker service has been shut down)

I suspect that because the port of the Xshell remote connection is 22, it is disconnected. I found all kinds of solutions on the Internet and asked for help.

-sharp last executes startup report error

clipboard.png

Mar.01,2021

docker run-p 6800 mynginx plus-p parameter, port forwarding


has the landlord solved it? I also encountered the same problem

Menu