Docker busybox usage and common operating system images

Source: Internet
Author: User
Tags centos docker ps docker run

Busybox is a software toolbox that integrates hundreds of commonly used linux commands and tools in linux. In many cases, we may need to install some virtual systems, including some environment configurations, so we need to download some operating system images, such as ubuntu and centos.
1. busybox image.
First query the image:
Docker search busybox

[Root @ niaoyun43442 yum. repos. d] # docker search busybox
Index name description stars official automatic
Docker. io docker. io/busybox Busybox base image. 714 [OK]
Docker. io docker. io/progrium/busybox 62 [OK]
Docker. io docker. io/radial/busyboxplus Full-chain, Internet enabled, busybox made... 11 [OK]
Docker. io docker. io/odise/busybox-python 3 [OK]
Docker. io docker. io/azukiapp/busybox This image is meant to be used as the base... 2 [OK]
Docker. io docker. io/multiarch/busybox multiarch ports of ubuntu-debootstrap 2 [OK]
Docker. io docker. io/elektritter/busybox-teamspeak Leightweight teamspeak3 container based on... 1 [OK]
Docker. io docker. io/getblank/busybox Docker container busybox for Blank 1 [OK]
Download Image: docker pull docker. io/busybox

[Root @ niaoyun43442 yum. repos. d] # docker pull docker. io/busybox
Using default tag: latest
Trying to pull repository docker. io/library/busybox...
Latest: Pulling from docker. io/library/busybox
8ddc19f16526: Pull complete
Digest: sha256: sha256
Status: Downloaded newer image for docker. io/busybox: latest
You can directly use docker run-ti busybox to create a container and perform the following operations.
Create the container busyboxtest based on the busybox image:

[Root @ niaoyun43442 yum. repos. d] # docker run-RTL -- name busyboxtest docker. io/busybox/bin/sh
Bytes
[Root @ niaoyun43442 yum. repos. d] # docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e34ddeaf6d docker. io/busybox "/bin/sh" 4 seconds ago Up 3 seconds busyboxtest
Go to the container and enter bin to view common commands:

[Root @ niaoyun43442 yum. repos. d] # docker exec-ti busyboxtest/bin/bash
/# Cd bin/
/Bin # ls
[Chat deluser fbset gzip ip lpd mknod patch reformime setlogcons swapon ubiattach vconfig
[[Chattr depmod fbsplash halt ipaddr lpq mkpasswd pgrep remove-shell setserial switch_root ubidetach vi
Acpid chgrp devmem fdflush hd ipcalc lpr mkswap pidof renice setsid sync ubimkvol vlock
Add-shell chmod df fdformat hdparm ipcrm ls mktemp ping reset setuidgid sysctl ubirename volname
Addgroup chown dhcprelay fdisk head ipcs lsattr modinfo ping6 resize sh syslogd ubirmvol wall
Adduser chpasswd diff fgconsole hexdump iplink lsmod modprobe pipe_progress rev shuf telnet uevent who
Too many contents. Omit the back part.
2. Operating system
You can use docker search osname to view images. For example:
Docker search centos
Docker search ubuntu
And so on. After creating a container based on the image, the container can be used normally. You can also encapsulate the container to form a new image template.

Note:
(1) official images are generally relatively small and only common components are installed. They are universal and have better plasticity. We recommend that you download this image for Configuration Optimization.
(2) some images uploaded by individuals or organizations have a wide range of content and are suitable for test handeners, but may not be suitable for their production environments.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.