先使用命令查看docker的运行进程
docker ps
[root@localhost logs]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e18082d1675 docker.baiwang-inner.com/general-jdk8:1.0.2 "sh /opt/startup.sh" 7 days ago Up 3 hours ctims01-ctims-gateway-out-cap-1-4
1a7aad9ac7a9 docker.baiwang-inner.com/general-jdk8:1.0.2 "sh /opt/startup.sh" 7 days ago Up About an hour ctims01-ctims-gateway-cap-1-3
a9cdd8957154 docker.baiwang-inner.com/filebeat:5.5.2 "filebeat -e" 5 weeks ago Up 7 days ctims01-filebeat-1-1
31276ec5e822 docker.baiwang-inner.com/general-jdk8:1.0.2 "sh /opt/startup.sh" 5 weeks ago Up 2 hours ctims01-ctims-report-biz.online-1-1
-------
进入docker
docker exec -it 31276ec5e822 /bin/sh
[root@localhost logs]# docker exec -it 31276ec5e822 /bin/sh
sh-4.1#
-----
可以正常使用命令查看信息了
sh-4.1# jps
823 Jps
8 ctims-report-biz.jar