[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6a3c7c96df93 tomcat "catalina.sh run" 2 hours ago Exited (143) 11 minutes ago youthful_carson
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
my_tomcat 1.0 20e7c603432c 7 minutes ago 510 MB
docker.io/centos latest 9f38484d220f 11 days ago 202 MB
docker.io/tomcat 8 dd6ff929584a 2 weeks ago 463 MB
[root@localhost ~]# docker run -d -p 8080:8080 --name my_tomcat_00 my_tomcat
Unable to find image 'cmiot_tomcat:latest' locally
Trying to pull repository docker.io/library/cmiot_tomcat ...
/usr/bin/docker-current: repository docker.io/cmiot_tomcat not found: does not exist or no pull access.
See '/usr/bin/docker-current run --help'.
[root@localhost ~]# docker run -d -p 8080:8080 --name my_tomcat_00 my_tomcat:1.0
0a299b64105fac63371978168a67f9015b361f9816678c0e4bb2ee174aa6ef55
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0a299b64105f my_tomcat:1.0 "catalina.sh run" About a minute ago Up About a minute 0.0.0.0:8080->8080/tcp my_tomcat_00
6a3c7c96df93 tomcat "catalina.sh run" 2 hours ago Exited (143) 14 minutes ago youthful_carson
[root@localhost ~]#