vagrant@docker-node2:~$ docker
ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fcd4665013fc busybox:latest
"sh -c 'while true; …"
38 seconds ago Up 38 seconds client.1.fe44b5uxtj593379imhfcpcd5
vagrant@docker-node2:~$ docker
exec
-it fc sh
/
/
/
/
PING
whoami
(10.0.1.2): 56 data bytes
64 bytes from 10.0.1.2:
seq
=0 ttl=64
time
=0.169 ms
64 bytes from 10.0.1.2:
seq
=1 ttl=64
time
=0.119 ms
64 bytes from 10.0.1.2:
seq
=2 ttl=64
time
=0.065 ms
^C
---
whoami
ping
statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min
/avg/max
= 0.065
/0
.117
/0
.169 ms
/