实战案例:操作系统

简介:
一、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运行这个虚拟机


本文转自 TtrToby 51CTO博客,原文链接:http://blog.51cto.com/freshair/1958352


相关文章
|
3月前
|
Ubuntu Linux Shell
【Linux操作系统】探秘Linux奥秘:shell 编程的解密与实战
【Linux操作系统】探秘Linux奥秘:shell 编程的解密与实战
73 0
|
3月前
|
Ubuntu Linux Shell
【Linux操作系统】探秘Linux奥秘:用户、组、密码及权限管理的解密与实战
【Linux操作系统】探秘Linux奥秘:用户、组、密码及权限管理的解密与实战
59 0
|
3天前
|
存储 Shell Linux
操作系统实战(一)(linux+C语言)
本篇文章重点在于利用linux系统的完成操作系统的实验,巩固课堂知识
|
3月前
|
Ubuntu Unix Linux
【Linux操作系统】探秘Linux奥秘:Linux 操作系统的解密与实战
【Linux操作系统】探秘Linux奥秘:Linux 操作系统的解密与实战
64 0
|
3月前
|
运维 Ubuntu Linux
【Linux操作系统】探秘Linux奥秘:日志管理的解密与实战
【Linux操作系统】探秘Linux奥秘:日志管理的解密与实战
48 0
|
3月前
|
Ubuntu Linux Shell
【Linux操作系统】探秘Linux奥秘:进程与任务管理的解密与实战
【Linux操作系统】探秘Linux奥秘:进程与任务管理的解密与实战
39 0
|
3月前
|
Linux 编译器 Shell
【Linux操作系统】探秘Linux奥秘:Linux开发工具的解密与实战
【Linux操作系统】探秘Linux奥秘:Linux开发工具的解密与实战
28 0
|
3月前
|
Ubuntu 网络协议 Linux
【操作系统】探究驱动奥秘:驱动程序设计的解密与实战
【操作系统】探究驱动奥秘:驱动程序设计的解密与实战
34 0
|
3月前
|
监控 Ubuntu 网络协议
【操作系统】探究文件系统奥秘:创建proc文件系统的解密与实战
【操作系统】探究文件系统奥秘:创建proc文件系统的解密与实战
38 0
|
3月前
|
算法 Ubuntu Linux
【操作系统】探究进程奥秘:显示进程列表的解密与实战
【操作系统】探究进程奥秘:显示进程列表的解密与实战
37 0