docker exec 运行命令

荒凉一梦 提交于 2019-12-04 09:41:34
docker:/root/sbin# docker exec -it 17aaf60ee3a1  /sbin/ifconfig -a
eth1      Link encap:Ethernet  HWaddr 22:EC:37:B0:5E:0E  
          inet addr:192.168.32.152  Bcast:192.168.32.255  Mask:255.255.255.0
          inet6 addr: fe80::20ec:37ff:feb0:5e0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75782 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3598 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6371340 (6.0 MiB)  TX bytes:257864 (251.8 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6160 (6.0 KiB)  TX bytes:6160 (6.0 KiB)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!