Hi
I have centos 7 and installed the dockrer. docker version is 1.10.3 .
i have pul the centos image from the docker hub but when I run it will automatically exited . why it exited immediattely ???
[root@t1-dev-new ~]# docker run centos
[root@t1-dev-new ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@t1-dev-new ~]# docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f19e83f949c9 centos “/bin/bash” 14 seconds ago Exited (0) 14 seconds ago prickly_heisenberg
[root@t1-dev-new ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f19e83f949c9 centos “/bin/bash” 19 seconds ago Exited (0) 18 seconds ago prickly_heisenberg
8f99ee99d508 centos “/bin/bash” 16 hours ago Exited (0) 16 hours ago modest_lichterman
1419f6911ccd centos “/bin/bash” 16 hours ago Exited (0) 16 hours ago compassionate_panini
ba30af9817e9 nirajvara/centos-apache “/bin/bash” 16 hours ago Exited (0) 16 hours ago condescending_jepsen
[root@t1-dev-new ~]#
[root@t1-dev-new ~]# docker iamges
docker: ‘iamges’ is not a docker command.
See ‘docker --help’.
[root@t1-dev-new ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/nirajvara/centos-apache latest 91936de205a9 46 hours ago 316.7 MB
docker.io/centos latest 50dae1ee8677 2 days ago 196.7 MB