読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

docker run with '-d' option

[root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null
97f8213ed1883270d11067a24bc6f718e77c5918005d58206d6b569fc02e8e58
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE               COMMAND               CREATED             STATUS              PORTS               NAMES
97f8213ed188        centos:7            "tail -f /dev/null"   2 seconds ago       Up 1 seconds                            ansible
[root@localhost ~]# docker ps -a
CONTAINER ID        IMAGE               COMMAND               CREATED             STATUS              PORTS               NAMES
97f8213ed188        centos:7            "tail -f /dev/null"   6 seconds ago       Up 5 seconds                            ansible
[root@localhost ~]#