docker之进入启动容器查看目录结构

  • by

docker之进入启动容器查看目录结构

[root@localhost 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

[root@localhost docker]

# docker exec -it 806c /bin/bash

docker exec -it containerID /bin/bash

[root@localhost docker] docker exec -it 806c /bin/bash

#

发表评论

电子邮件地址不会被公开。 必填项已用*标注

18 − 16 =