docker配置
2018-08-19 本文已影响0人
novenine
docker pull debian:16.04
docker run -itd --name caoping -v /home/caoping/docker1:/root/user -p 3000:22 --restart=always -e DISPLAY=:0 ubuntud:16.04
docker exec -it caoping bash
docker start/stop/restart caoping
docker ps -a
docker rm caoping
docker images
/etc/init.d/ssh start
当docker连不上的时候
/etc/init.d/ssh restart