sfti
docker build -t imgname .
docker run -d -p port:22 -v local:/root/dir --name ctname imgname /usr/sbin/sshd -D
in which portnum: like 10888 whatever local: a dir in local like /home/test
Host ctname HostName localhost User root Port portnum
ssh ctname password: root