[root@localhost ~]# docker stop static_test
static_test
[root@localhost ~]# docker ps
container id image command created status ports names
b4f32bbe4a34 hub.c.163.com/library/ubuntu “/bin/bash” 41 hours ago up 41 hours loving_brattain
d75a2d8c7822 xingguo/df_test1 “nginx -g daemon off” 2 days ago up 2 days 0.0.0.0:32770->80/tcp df_nginx_web
959c0fc5d903 xingguo/commit_test1 “nginx -g daemon off” 2 days ago up 2 days 0.0.0.0:32769->80/tcp nginx_test
[root@localhost ~]# docker start static_test
static_test
[root@localhost ~]# docker ps
container id image command created status ports names
25fcbf6e953d hub.c.163.com/library/ubuntu “/bin/bash” 29 minutes ago up 2 seconds 0.0.0.0:32773->80/tcp static_test
b4f32bbe4a34 hub.c.163.com/library/ubuntu “/bin/bash” 41 hours ago up 41 hours loving_brattain
d75a2d8c7822 xingguo/df_test1 “nginx -g daemon off” 2 days ago up 2 days 0.0.0.0:32770->80/tcp df_nginx_web
959c0fc5d903 xingguo/commit_test1 “nginx -g daemon off” 2 days ago up 2 days 0.0.0.0:32769->80/tcp nginx_test
[root@localhost ~]# docker top static_test
uid pid ppid c stime tty time cmd
root 4719 4702 0 13:17 pts/2 00:00:00 /bin/bash
[root@localhost ~]# docker exec static_test nginx
[root@localhost ~]# docker top static_test
uid pid ppid c stime tty time cmd
root 4719 4702 0 13:17 pts/2 00:00:00 /bin/bash
root 4800 1 0 13:18 ? 00:00:00 nginx: master process nginx
amandab+ 4801 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4802 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4803 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4804 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4805 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4806 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4807 4800 0 13:18 ? 00:00:00 nginx: worker process
amandab+ 4808 4800 0 13:18 ? 00:00:00 nginx: worker process
[root@localhost ~]#