1. 程式人生 > >docker exec 執行命令

docker exec 執行命令

               
docker:/root/sbin# docker exec -it 17aaf60ee3a1  /sbin/ifconfig -aeth1      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)