码迷,mamicode.com
首页 > 其他好文 > 详细

实战案例:操作系统

时间:2017-08-22 21:56:50      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:docker

一、busybox
BusyBox 是一个集成了一百多个最常用Linux命令和工具的软件。BusyBox 包含了一些简单的工具,
例如ls、cat和echo等等,还包含了一些更大、更复杂的工具,例grep、find、mount以及telnet。
有些人将 BusyBox 称为 Linux 工具里的瑞士军刀。简单的说BusyBox就好像是个大工具箱,它集
成压缩了 Linux 的许多工具和命令,也包含了 Android 系统的自带的shell。

1、在dockerhub中搜索busybox相关的镜像
root@docker-test:~# docker search busybox
NAME                        DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
busybox                     Busybox base image.                             1075      [OK]       
progrium/busybox                                                            67                   [OK]
hypriot/rpi-busybox-httpd   Raspberry Pi compatible Docker Image with ...   36                   
hypriot/armhf-busybox       Busybox base image for ARM.                     7                    
armhf/busybox               Busybox base image.                             3                    
armel/busybox               Busybox base image.                             2                    
onsi/grace-busybox                                                          2                    
s390x/busybox               Busybox base image.                             2                    
p7ppc64/busybox             Busybox base image for ppc64.                   2                    
prom/busybox                Prometheus Busybox Docker base images           2                    [OK]
aarch64/busybox             Busybox base image.                             2                    
arm32v7/busybox             Busybox base image.                             2                    
i386/busybox                Busybox base image.                             1                    
arm32v6/busybox             Busybox base image.                             1                    
ppc64le/busybox             Busybox base image.                             1                    
spotify/busybox             Spotify fork of https://hub.docker.com/_/b...   1                    
flynn/busybox               Busybox from Ubuntu 13.10 with libc             1                    
estesp/busybox              Test repo of a ‘manifest list‘ to encapsul...   0                    
podshumok/busybox                                                           0                    
trollin/busybox                                                             0                    
nranjan/busybox                                                             0                    
arm64v8/busybox             Busybox base image.                             0                    
ddn0/busybox                fork of official busybox                        0                    [OK]
arm32v5/busybox             Busybox base image.                             0                    
himanshu0503/busybox                                                        0                    
root@docker-test:~#
提示:带有OFFICIAL标记的说明是官方镜像

2、查看镜像
root@docker-test:~# docker images
busybox                           latest              e3826c3cb1d4        4 weeks ago          1.129 MB


3、运行busybox
root@docker-test:~# docker run -it busybox
运行后随便执行几个命令试试
/ # pwd
/
/ # ifconfig
eth0      Link encap:Ethernet  HWaddr 02:42:C0:A8:C8:02  
          inet addr:192.168.200.2  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::42:c0ff:fea8:c802/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:578 (578.0 B)  TX bytes:578 (578.0 B)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

/ #

busybox虽然小巧,但提供了常见的linux命令


二、CoreOS
这是一个基于docker的Linux发行版

下载地址:https://stable.release.core-os.net/amd64-usr/current/coreos_production_vmware_ova.ova

用vmware workstation运行这个虚拟机

本文出自 “Fresh Air Team” 博客,请务必保留此出处http://freshair.blog.51cto.com/8272891/1958352

实战案例:操作系统

标签:docker

原文地址:http://freshair.blog.51cto.com/8272891/1958352

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!