[root@localhost yum.repos.d]# vi /etc/resolv.cnf
[root@localhost yum.repos.d]# ping 192.168.27.5
PING 192.168.27.5 (192.168.27.5) 56(84) bytes of data.
64 bytes from 192.168.27.5: icmp_seq=1 ttl=64 time=0.445 ms
^C
--- 192.168.27.5 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.445/0.445/0.445/0.000 ms
[root@localhost yum.repos.d]# route add default gw 192.168.27.1----------------------------------------------------添加路由
[root@localhost yum.repos.d]# ping
[root@localhost /]#
[root@localhost /]# docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
6b98dfc16071: Pull complete
4001a1209541: Pull complete
6319fc68c576: Pull complete
b24603670dc3: Pull complete
97f170c87c6f: Pull complete
Digest: sha256:5f4bdc3467537cbbe563e80db2c3ec95d548a9145d64453b06939c4592d67b6d
Status: Downloaded newer image for ubuntu:latest
[root@localhost /]#
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c316d705a431 ubuntu "/bin/bash" About a minute ago Up About a minute vibrant_lichterman
804e947fa148 ubuntu "echo zhuliguo" 2 minutes ago Exited (0) 2 minutes ago upbeat_turing
9edc89cea5f7 ubuntu "/bin/bash/" 4 minutes ago Created clever_wescoff
[root@localhost /]#
[root@localhost /]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c316d705a431 ubuntu "/bin/bash" About a minute ago Exited (0) 2 seconds ago vibrant_lichterman
804e947fa148 ubuntu "echo zhuliguo" 3 minutes ago Exited (0) 3 minutes ago upbeat_turing
9edc89cea5f7 ubuntu "/bin/bash/" 4 minutes ago Created clever_wescoff
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# docker search busybox
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
busybox Busybox base image. 1288 [OK]
progrium/busybox 67 [OK]
hypriot/rpi-busybox-httpd Raspberry Pi compatible Docker Image with a … 41
radial/busyboxplus Full-chain, Internet enabled, busybox made f… 19 [OK]
hypriot/armhf-busybox Busybox base image for ARM. 9
arm32v7/busybox Busybox base image. 5
armhf/busybox Busybox base image. 4
prom/busybox Prometheus Busybox Docker base images 2 [OK]
p7ppc64/busybox Busybox base image for ppc64. 2
onsi/grace-busybox 2
yauritux/busybox-curl Busybox with CURL 2
s390x/busybox Busybox base image. 2
odise/busybox-curl 2 [OK]
armel/busybox Busybox base image. 2
i386/busybox Busybox base image. 2
aarch64/busybox Busybox base image. 2
sequenceiq/busybox 2 [OK]
ppc64le/busybox Busybox base image. 1
arm64v8/busybox Busybox base image. 1
spotify/busybox Spotify fork of … 1
concourse/busyboxplus 0
cfgarden/garden-busybox 0
ggtools/busybox-ubuntu Busybox ubuntu version with extra goodies 0 [OK]
amd64/busybox Busybox base image. 0
trollin/busybox 0
[root@localhost /]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 113a43faa138 3 weeks ago 81.1MB
[root@localhost /]# docker pull busybox
Using default tag: latest
latest: Pulling from library/busybox
07a152489297: Pull complete
Digest: sha256:141c253bc4c3fd0a201d32dc1f493bcf3fff003b6df416dea4f41046e0f37d47
Status: Downloaded newer image for busybox:latest
[root@localhost /]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 113a43faa138 3 weeks ago 81.1MB
busybox latest 8c811b4aec35 5 weeks ago 1.15MB
[root@localhost /]#
[root@localhost /]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest 113a43faa138 3 weeks ago 81.1MB
busybox latest 8c811b4aec35 5 weeks ago 1.15MB
[root@localhost /]# docker run -it busybox
/ # grep
BusyBox v1.28.4 (2018-05-22 17:00:17 UTC) multi-call binary.
Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Search for PATTERN in FILEs (or stdin)
-H Add 'filename:' prefix
-h Do not add 'filename:' prefix
-n Add 'line_no:' prefix
-l Show only names of files that match
-L Show only names of files that don't match
-c Show only count of matching lines
-o Show only the matching part of line
-q Quiet. Return 0 if PATTERN is found, 1 otherwise
-v Select non-matching lines
-s Suppress open and read errors
-r Recurse
-i Ignore case
-w Match whole words only
-x Match whole lines only
-F PATTERN is a literal (not regexp)
-E PATTERN is an extended regexp
-m N Match up to N times per file
-A N Print N lines of trailing context
-B N Print N lines of leading context
-C N Same as '-A N -B N'
-e PTRN Pattern to match
-f FILE Read pattern from file
/ # mount
rootfs on / type rootfs (rw)
overlay on / type overlay (rw,relatime,lowerdir=/config/docker/overlay/09253418f77a23c251b1583855f655b064a24450ceac9f429285904ec0808f59/root,upperdir=/config/docker/overlay/2493a81db741f008afa266a9d732518f44fd995fa16a4e6f97a4aabccc8a04fd/upper,workdir=/config/docker/overlay/2493a81db741f008afa266a9d732518f44fd995fa16a4e6f97a4aabccc8a04fd/work)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,size=65536k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)
sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (ro,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (ro,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (ro,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (ro,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (ro,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (ro,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (ro,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (ro,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (ro,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (ro,nosuid,nodev,noexec,relatime,hugetlb)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
/dev/sda6 on /etc/resolv.conf type ext4 (rw,relatime,data=ordered)
/dev/sda6 on /etc/hostname type ext4 (rw,relatime,data=ordered)
/dev/sda6 on /etc/hosts type ext4 (rw,relatime,data=ordered)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666)
proc on /proc/asound type proc (ro,relatime)
proc on /proc/bus type proc (ro,relatime)
proc on /proc/fs type proc (ro,relatime)
proc on /proc/irq type proc (ro,relatime)
proc on /proc/sys type proc (ro,relatime)
proc on /proc/sysrq-trigger type proc (ro,relatime)
tmpfs on /proc/kcore type tmpfs (rw,nosuid,size=65536k,mode=755)
tmpfs on /proc/keys type tmpfs (rw,nosuid,size=65536k,mode=755)
tmpfs on /proc/timer_list type tmpfs (rw,nosuid,size=65536k,mode=755)
tmpfs on /proc/scsi type tmpfs (ro,relatime)
tmpfs on /sys/firmware type tmpfs (ro,relatime)
/ # exit
[root@localhost /]#
阅读(1505) | 评论(0) | 转发(0) |