阅读背景:

kubernetes云平台管理实战: pod资源共享(三)

来源:互联网 

一、共享容器IP地址

1、查看容器进程

[root@k8s-node1 ~]# docker ps -a 
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS                         PORTS               NAMES
27d25a2ee024        10.0.128.0:5000/nginx:latest                "nginx -g 'daemon off"   6 minutes ago       Up 6 minutes                                       k8s_nginx.d9a10343_nginx_default_eb1873c6-1c70-11e9-a431-000c292bd9e1_db2f2216
5a4f3b8afc83        10.0.128.0:5000/pod-infrastructure:latest   "/pod"                   6 minutes ago       Up 6 minutes                                       k8s_POD.be1401e9_nginx_default_eb1873c6-1c70-11e9-a431-000c292bd9e1_e0c2e5a9
3c681264cf57        busybox                                     "/bin/sh"                About an hour ago   Exited (0) 45 minutes ago                          sleepy_euclid
f63325fd3fff        busybox                                     "/bin/sh"                4 hours ago         Exited (1) About an hour ago                       tiny_darwin[root@k8s-node1 ~]#



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: