docker之進入啟動容器檢視目錄結構
阿新 • • 發佈:2018-12-10
[[email protected] docker]# docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
806c175229ce original:1.0 "/tomcat/bin/catal..." 20 hours ago Up 5 seconds 8080/tcp origin-debug
f04275ad9896 newtomcat:1.0 "/root/run.sh" 26 hours ago Exited (137) 21 hours ago newtomcat_3
[ [email protected] docker]# docker exec -it 806c /bin/bash
docker exec -it containerID /bin/bash
[[email protected] docker]# docker exec -it 806c /bin/bash