Docker

Docker Busybox linux命令练习软件集

2016-01-07  本文已影响1050人  如来自然

下载镜像到本地
[root@docker ~]# docker pull busybox

查看大小

[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
docker.io/ubuntu latest af88597ec24b 2 days ago 187.9 MB
docker.io/busybox latest fc0db02f3072 4 weeks ago 1.113 MB

可以看到最新的菜1.113MB,真是小,方便。

测试:
[root@docker ~]# docker run -ti busybox
/ # ping www.baidu.com
PING www.baidu.com (61.135.169.125): 56 data bytes
64 bytes from 61.135.169.125: seq=0 ttl=53 time=24.631 ms
64 bytes from 61.135.169.125: seq=1 ttl=53 time=26.526 ms
^C
--- www.baidu.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 24.631/25.578/26.526 ms
/ #

当然不只有ping 有一百多个呢,你自己练习吧。

上一篇下一篇

猜你喜欢

热点阅读