zoukankan      html  css  js  c++  java
  • (OK) IMUNES—Docker—Fedora23

    [root@localhost ~]# cd /opt/tools/network_simulators/core/
    [root@localhost core]# nautilus /opt/tools/network_simulators/core/
    [root@localhost core]# dnf install openvswitch docker-io xterm wireshark-gnome
    >     ImageMagick tcl tcllib tk kernel-modules-extra util-linux
    上次元数据过期检查:2:19:56 前,执行于 Tue May 10 14:27:13 2016。
    软件包 openvswitch-2.5.0-2.fc23.x86_64 已安装,跳过
    软件包 ImageMagick-6.9.2.7-1.fc23.x86_64 已安装,跳过
    软件包 tcl-1:8.6.4-1.fc23.x86_64 已安装,跳过
    软件包 tk-1:8.6.4-2.fc23.x86_64 已安装,跳过
    软件包 kernel-modules-extra-4.2.3-300.fc23.x86_64 已安装,跳过
    软件包 kernel-modules-extra-4.4.8-300.fc23.x86_64 已安装,跳过
    软件包 util-linux-2.28-1.fc23.x86_64 已安装,跳过
    依赖关系解决。
    ==========================================================================================================================
     Package                               架构               版本                                  仓库                 大小
    ==========================================================================================================================
    安装:
     docker                                x86_64             2:1.9.1-9.gitee06d03.fc23             updates             9.0 M
     docker-forward-journald               x86_64             2:1.9.1-9.gitee06d03.fc23             updates             983 k
     docker-selinux                        x86_64             2:1.9.1-9.gitee06d03.fc23             updates              59 k
     jack-audio-connection-kit             x86_64             1.9.10-3.fc23                         fedora              545 k
     libconfig                             x86_64             1.5-3.fc23                            updates              64 k
     libffado                              x86_64             2.2.1-5.fc23                          fedora              691 k
     libsmi                                x86_64             0.4.8-16.fc23                         fedora              2.4 M
     libxml++                              x86_64             2.40.1-1.fc23                         updates              90 k
     portaudio                             x86_64             19-22.fc23                            fedora               94 k
     tcllib                                noarch             1.17-1.fc23                           fedora              3.4 M
     wireshark                             x86_64             1.12.11-1.fc23                        updates              14 M
     wireshark-gnome                       x86_64             1.12.11-1.fc23                        updates             993 k
     xterm                                 x86_64             318-2.fc23                            fedora              503 k

    事务概要
    ==========================================================================================================================
    安装  13 软件包

    总下载:33 M
    安装大小:152 M
    确定吗?[y/N]: y
    下载软件包:
    (1/13): xterm-318-2.fc23.x86_64.rpm                                                       805 kB/s | 503 kB     00:00    
    (2/13): tcllib-1.17-1.fc23.noarch.rpm                                                     2.5 MB/s | 3.4 MB     00:01    
    [MIRROR] docker-selinux-1.9.1-9.gitee06d03.fc23.x86_64.rpm: Curl error (28): Timeout was reached for ftp://mirrors.ustc.edu.cn/fedora/linux/updates/23/x86_64/d/docker-selinux-1.9.1-9.gitee06d03.fc23.x86_64.rpm []
    (3/13): docker-selinux-1.9.1-9.gitee06d03.fc23.x86_64.rpm                                 128 kB/s |  59 kB     00:00    
    (4/13): wireshark-gnome-1.12.11-1.fc23.x86_64.rpm                                         2.8 MB/s | 993 kB     00:00    
    (5/13): portaudio-19-22.fc23.x86_64.rpm                                                   559 kB/s |  94 kB     00:00    
    (6/13): jack-audio-connection-kit-1.9.10-3.fc23.x86_64.rpm                                1.3 MB/s | 545 kB     00:00    
    (7/13): libffado-2.2.1-5.fc23.x86_64.rpm                                                  1.5 MB/s | 691 kB     00:00    
    (8/13): docker-forward-journald-1.9.1-9.gitee06d03.fc23.x86_64.rpm                        292 kB/s | 983 kB     00:03    
    (9/13): libsmi-0.4.8-16.fc23.x86_64.rpm                                                   2.4 MB/s | 2.4 MB     00:00    
    (10/13): libconfig-1.5-3.fc23.x86_64.rpm                                                  226 kB/s |  64 kB     00:00    
    (11/13): libxml++-2.40.1-1.fc23.x86_64.rpm                                                555 kB/s |  90 kB     00:00    
    (12/13): wireshark-1.12.11-1.fc23.x86_64.rpm                                              4.1 MB/s |  14 MB     00:03    
    (13/13): docker-1.9.1-9.gitee06d03.fc23.x86_64.rpm                                        591 kB/s | 9.0 MB     00:15    
    --------------------------------------------------------------------------------------------------------------------------
    总计                                                                                      1.5 MB/s |  33 MB     00:21     
    运行事务检查
    事务检查成功。
    运行事务测试
    事务测试成功。
    运行事务
      安装: libxml++-2.40.1-1.fc23.x86_64                                                                                1/13
      安装: libconfig-1.5-3.fc23.x86_64                                                                                  2/13
      安装: libffado-2.2.1-5.fc23.x86_64                                                                                 3/13
      安装: jack-audio-connection-kit-1.9.10-3.fc23.x86_64                                                               4/13
      安装: portaudio-19-22.fc23.x86_64                                                                                  5/13
      安装: libsmi-0.4.8-16.fc23.x86_64                                                                                  6/13
      安装: wireshark-1.12.11-1.fc23.x86_64                                                                              7/13
      安装: docker-selinux-2:1.9.1-9.gitee06d03.fc23.x86_64                                                              8/13
      安装: docker-forward-journald-2:1.9.1-9.gitee06d03.fc23.x86_64                                                     9/13
      安装: docker-2:1.9.1-9.gitee06d03.fc23.x86_64                                                                     10/13
      安装: wireshark-gnome-1.12.11-1.fc23.x86_64                                                                       11/13
      安装: tcllib-1.17-1.fc23.noarch                                                                                   12/13
      安装: xterm-318-2.fc23.x86_64                                                                                     13/13
      验证: xterm-318-2.fc23.x86_64                                                                                      1/13
      验证: tcllib-1.17-1.fc23.noarch                                                                                    2/13
      验证: docker-2:1.9.1-9.gitee06d03.fc23.x86_64                                                                      3/13
      验证: docker-forward-journald-2:1.9.1-9.gitee06d03.fc23.x86_64                                                     4/13
      验证: docker-selinux-2:1.9.1-9.gitee06d03.fc23.x86_64                                                              5/13
      验证: wireshark-gnome-1.12.11-1.fc23.x86_64                                                                        6/13
      验证: portaudio-19-22.fc23.x86_64                                                                                  7/13
      验证: jack-audio-connection-kit-1.9.10-3.fc23.x86_64                                                               8/13
      验证: libffado-2.2.1-5.fc23.x86_64                                                                                 9/13
      验证: wireshark-1.12.11-1.fc23.x86_64                                                                             10/13
      验证: libsmi-0.4.8-16.fc23.x86_64                                                                                 11/13
      验证: libconfig-1.5-3.fc23.x86_64                                                                                 12/13
      验证: libxml++-2.40.1-1.fc23.x86_64                                                                               13/13

    已安装:
      docker.x86_64 2:1.9.1-9.gitee06d03.fc23                 docker-forward-journald.x86_64 2:1.9.1-9.gitee06d03.fc23        
      docker-selinux.x86_64 2:1.9.1-9.gitee06d03.fc23         jack-audio-connection-kit.x86_64 1.9.10-3.fc23                  
      libconfig.x86_64 1.5-3.fc23                             libffado.x86_64 2.2.1-5.fc23                                    
      libsmi.x86_64 0.4.8-16.fc23                             libxml++.x86_64 2.40.1-1.fc23                                   
      portaudio.x86_64 19-22.fc23                             tcllib.noarch 1.17-1.fc23                                       
      wireshark.x86_64 1.12.11-1.fc23                         wireshark-gnome.x86_64 1.12.11-1.fc23                           
      xterm.x86_64 318-2.fc23                                

    完毕!
    [root@localhost core]# less /etc/sysconfig/docker-storage
    docker-storage        docker-storage-setup  
    [root@localhost core]# less /etc/sysconfig/docker-storage
    docker-storage        docker-storage-setup  
    [root@localhost core]# less /etc/sysconfig/docker-storage
    [root@localhost core]# echo 'DOCKER_STORAGE_OPTIONS="-s overlay"' >> /etc/sysconfig/docker-storage
    [root@localhost core]# systemctl restart docker
    [root@localhost core]# systemctl status docker.service
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
       Active: inactive (dead) since 二 2016-05-10 17:03:16 CST; 14s ago
         Docs: http://docs.docker.com
      Process: 23612 ExecStart=/bin/sh -c /usr/bin/docker daemon            $OPTIONS            $DOCKER_STORAGE_OPTIONS            $DOCKER_NETWORK_OPTIONS            $INSECURE_REGISTRY            2>&1 | /usr/bin/forward-journald -tag docker (code=exited, status=0/SUCCESS)
     Main PID: 23612 (code=exited, status=0/SUCCESS)

    5月 10 17:03:16 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
    5月 10 17:03:16 localhost.localdomain forward-journal[23616]: Forwarding stdin to journald using Priority Informati...ker
    5月 10 17:03:16 localhost.localdomain forward-journal[23616]: time="2016-05-10T17:03:16.385449265+08:00" level=fata...er"
    5月 10 17:03:16 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@localhost core]# rm /var/lib/docker/ -rf
    [root@localhost core]# systemctl restart docker
    [root@localhost core]# systemctl status docker.service
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
       Active: inactive (dead) since 二 2016-05-10 17:03:51 CST; 2s ago
         Docs: http://docs.docker.com
      Process: 23746 ExecStart=/bin/sh -c /usr/bin/docker daemon            $OPTIONS            $DOCKER_STORAGE_OPTIONS            $DOCKER_NETWORK_OPTIONS            $INSECURE_REGISTRY            2>&1 | /usr/bin/forward-journald -tag docker (code=exited, status=0/SUCCESS)
     Main PID: 23746 (code=exited, status=0/SUCCESS)

    5月 10 17:03:51 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
    5月 10 17:03:51 localhost.localdomain forward-journal[23752]: Forwarding stdin to journald using Priority Informati...ker
    5月 10 17:03:51 localhost.localdomain forward-journal[23752]: time="2016-05-10T17:03:51.073291318+08:00" level=fata...er"
    5月 10 17:03:51 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@localhost core]# systemctl status docker.service -l
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
       Active: inactive (dead) since 二 2016-05-10 17:03:51 CST; 16s ago
         Docs: http://docs.docker.com
      Process: 23746 ExecStart=/bin/sh -c /usr/bin/docker daemon            $OPTIONS            $DOCKER_STORAGE_OPTIONS            $DOCKER_NETWORK_OPTIONS            $INSECURE_REGISTRY            2>&1 | /usr/bin/forward-journald -tag docker (code=exited, status=0/SUCCESS)
     Main PID: 23746 (code=exited, status=0/SUCCESS)

    5月 10 17:03:51 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
    5月 10 17:03:51 localhost.localdomain forward-journal[23752]: Forwarding stdin to journald using Priority Informational and tag docker
    5月 10 17:03:51 localhost.localdomain forward-journal[23752]: time="2016-05-10T17:03:51.073291318+08:00" level=fatal msg="Error starting daemon: SELinux is not supported with the overlay graph driver"
    5月 10 17:03:51 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
    [root@localhost core]# ps aux|grep docker
    root     23865  0.0  0.0 118492  2276 pts/0    S+   17:04   0:00 grep --color=auto docker
    [root@localhost core]# ls /var/lib/docker/
    overlay/ tmp/     
    [root@localhost core]# ls /var/lib/docker/
    overlay  tmp
    [root@localhost core]# rm /var/lib/docker/ -rf
    [root@localhost core]# ls /var/lib/docker/
    ls: 无法访问/var/lib/docker/: 没有那个文件或目录
    [root@localhost core]# less /usr/lib/systemd/system/docker.service
    core-master-20160420.zip      core-svnsnap-20160301.tgz     core-svnsnap.tgz              docker-py-master/
    core-network_4.8.orig.tar.gz  core-svnsnap-20160427.tgz     docker-py-1.8.1.zip           
    [root@localhost core]# less /usr/lib/systemd/system/docker.service
    [root@localhost core]# ls /usr/bin/docker
    /usr/bin/docker
    [root@localhost core]# systemctl start docker.service
    [root@localhost core]# docker images
    Cannot connect to the Docker daemon. Is the docker daemon running on this host?
    [root@localhost core]# less /var/log/messages
    [root@localhost core]# getsebool -a |grep docker
    docker_connect_any --> off
    [root@localhost core]# less /var/log/messages
    [root@localhost core]# less /etc/sysconfig/docker-storage
    [root@localhost core]# docker -v
    Docker version 1.9.1, build ee06d03/1.9.1
    [root@localhost core]# systemctl restart docker
    [root@localhost core]# docker info | grep Storage
    Cannot connect to the Docker daemon. Is the docker daemon running on this host?
    [root@localhost core]# dnf update
    上次元数据过期检查:2:43:05 前,执行于 Tue May 10 14:27:13 2016。
    依赖关系解决。
    无需任何处理。
    完毕!
    [root@localhost core]# dnf install openvswitch docker-io xterm wireshark-gnome
    >         ImageMagick tcl tcllib tk kernel-modules-extra util-linux
    上次元数据过期检查:2:43:16 前,执行于 Tue May 10 14:27:13 2016。
    软件包 openvswitch-2.5.0-2.fc23.x86_64 已安装,跳过
    软件包 docker-2:1.9.1-9.gitee06d03.fc23.x86_64 已安装,跳过
    软件包 xterm-318-2.fc23.x86_64 已安装,跳过
    软件包 wireshark-gnome-1.12.11-1.fc23.x86_64 已安装,跳过
    软件包 ImageMagick-6.9.2.7-1.fc23.x86_64 已安装,跳过
    软件包 tcl-1:8.6.4-1.fc23.x86_64 已安装,跳过
    软件包 tcllib-1.17-1.fc23.noarch 已安装,跳过
    软件包 tk-1:8.6.4-2.fc23.x86_64 已安装,跳过
    软件包 kernel-modules-extra-4.2.3-300.fc23.x86_64 已安装,跳过
    软件包 kernel-modules-extra-4.4.8-300.fc23.x86_64 已安装,跳过
    软件包 util-linux-2.28-1.fc23.x86_64 已安装,跳过
    依赖关系解决。
    无需任何处理。
    完毕!
    [root@localhost core]# modinfo sch_netem
    filename:       /lib/modules/4.4.8-300.fc23.x86_64/extra/net/sched/sch_netem.ko.xz
    license:        GPL
    depends:        
    intree:         Y
    vermagic:       4.4.8-300.fc23.x86_64 SMP mod_unload
    [root@localhost core]# cd
    [root@localhost ~]# systemctl restart docker
    [root@localhost ~]# less /var/log/messages
    [root@localhost ~]# dnf erase docker
    依赖关系解决。
    ==========================================================================================================================
     Package                             架构               版本                                   仓库                  大小
    ==========================================================================================================================
    移除:
     docker                              x86_64             2:1.9.1-9.gitee06d03.fc23              @updates              38 M
     docker-forward-journald             x86_64             2:1.9.1-9.gitee06d03.fc23              @updates             3.7 M
     docker-selinux                      x86_64             2:1.9.1-9.gitee06d03.fc23              @updates              17 k

    事务概要
    ==========================================================================================================================
    移除  3 软件包

    安装大小:42 M
    确定吗?[y/N]: y
    运行事务检查
    事务检查成功。
    运行事务测试
    事务测试成功。
    运行事务
      删除: docker-2:1.9.1-9.gitee06d03.fc23.x86_64                                                                       1/3
    警告:/etc/sysconfig/docker-storage 已另存为 /etc/sysconfig/docker-storage.rpmsave
      删除: docker-selinux-2:1.9.1-9.gitee06d03.fc23.x86_64                                                               2/3
      删除: docker-forward-journald-2:1.9.1-9.gitee06d03.fc23.x86_64                                                      3/3
      验证: docker-2:1.9.1-9.gitee06d03.fc23.x86_64                                                                       1/3
      验证: docker-forward-journald-2:1.9.1-9.gitee06d03.fc23.x86_64                                                      2/3
      验证: docker-selinux-2:1.9.1-9.gitee06d03.fc23.x86_64                                                               3/3

    已移除:
      docker.x86_64 2:1.9.1-9.gitee06d03.fc23                 docker-forward-journald.x86_64 2:1.9.1-9.gitee06d03.fc23        
      docker-selinux.x86_64 2:1.9.1-9.gitee06d03.fc23        

    完毕!
    [root@localhost ~]# dnf install docker-engine
    上次元数据过期检查:2:51:53 前,执行于 Tue May 10 14:27:13 2016。
    依赖关系解决。
    ==========================================================================================================================
     Package                               架构                  版本                         仓库                       大小
    ==========================================================================================================================
    安装:
     audit-libs-python                     x86_64                2.5.1-1.fc23                 updates                    95 k
     docker-engine                         x86_64                1.11.1-1.fc23                dockerrepo                 13 M
     docker-engine-selinux                 noarch                1.11.1-1.fc23                dockerrepo                 32 k
     libselinux-python                     x86_64                2.4-4.fc23                   fedora                    302 k
     libsemanage-python                    x86_64                2.4-4.fc23                   fedora                    109 k
     policycoreutils-python                x86_64                2.4-21.fc23                  updates                   400 k
     python-IPy                            noarch                0.81-13.fc23                 fedora                     42 k

    事务概要
    ==========================================================================================================================
    安装  7 软件包

    总下载:14 M
    安装大小:57 M
    确定吗?[y/N]: y
    下载软件包:
    (1/7): docker-engine-selinux-1.11.1-1.fc23.noarch.rpm                                      21 kB/s |  32 kB     00:01    
    (2/7): policycoreutils-python-2.4-21.fc23.x86_64.rpm                                      167 kB/s | 400 kB     00:02    
    (3/7): libselinux-python-2.4-4.fc23.x86_64.rpm                                            521 kB/s | 302 kB     00:00    
    (4/7): libsemanage-python-2.4-4.fc23.x86_64.rpm                                           495 kB/s | 109 kB     00:00    
    (5/7): python-IPy-0.81-13.fc23.noarch.rpm                                                 367 kB/s |  42 kB     00:00    
    (6/7): audit-libs-python-2.5.1-1.fc23.x86_64.rpm                                           48 kB/s |  95 kB     00:01    
    (7/7): docker-engine-1.11.1-1.fc23.x86_64.rpm                                             530 kB/s |  13 MB     00:25    
    --------------------------------------------------------------------------------------------------------------------------
    总计                                                                                      398 kB/s |  14 MB     00:36     
    运行事务检查
    事务检查成功。
    运行事务测试
    事务测试成功。
    运行事务
      安装: python-IPy-0.81-13.fc23.noarch                                                                                1/7
      安装: libsemanage-python-2.4-4.fc23.x86_64                                                                          2/7
      安装: libselinux-python-2.4-4.fc23.x86_64                                                                           3/7
      安装: audit-libs-python-2.5.1-1.fc23.x86_64                                                                         4/7
      安装: policycoreutils-python-2.4-21.fc23.x86_64                                                                     5/7
      安装: docker-engine-selinux-1.11.1-1.fc23.noarch                                                                    6/7
      安装: docker-engine-1.11.1-1.fc23.x86_64                                                                            7/7
      验证: docker-engine-1.11.1-1.fc23.x86_64                                                                            1/7
      验证: docker-engine-selinux-1.11.1-1.fc23.noarch                                                                    2/7
      验证: policycoreutils-python-2.4-21.fc23.x86_64                                                                     3/7
      验证: audit-libs-python-2.5.1-1.fc23.x86_64                                                                         4/7
      验证: libselinux-python-2.4-4.fc23.x86_64                                                                           5/7
      验证: libsemanage-python-2.4-4.fc23.x86_64                                                                          6/7
      验证: python-IPy-0.81-13.fc23.noarch                                                                                7/7

    已安装:
      audit-libs-python.x86_64 2.5.1-1.fc23  docker-engine.x86_64 1.11.1-1.fc23    docker-engine-selinux.noarch 1.11.1-1.fc23
      libselinux-python.x86_64 2.4-4.fc23    libsemanage-python.x86_64 2.4-4.fc23  policycoreutils-python.x86_64 2.4-21.fc23  
      python-IPy.noarch 0.81-13.fc23        

    完毕!
    [root@localhost ~]# gedit /usr/lib/systemd/system/docker.service
    [root@localhost ~]# rm /var/lib/docker/ -rf
    [root@localhost ~]# systemctl start docker.service
    Warning: docker.service changed on disk. Run 'systemctl daemon-reload' to reload units.
    [root@localhost ~]# ^C
    [root@localhost ~]# systemctl daemon-reload
    [root@localhost ~]# systemctl start docker.service
    [root@localhost ~]# systemctl restart docker.service
    [root@localhost ~]# systemctl status docker.service
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
       Active: active (running) since 二 2016-05-10 17:20:54 CST; 18s ago
         Docs: https://docs.docker.com
     Main PID: 25843 (docker)
       Memory: 12.6M
          CPU: 134ms
       CGroup: /system.slice/docker.service
               ├─25843 /usr/bin/docker daemon -s overlay
               └─25850 docker-containerd -l /var/run/docker/libcontainerd/docker-containerd.sock --runtime docker-runc

    5月 10 17:20:52 localhost.localdomain docker[25843]: time="2016-05-10T17:20:52.422584424+08:00" level=info msg="Ne...0 "
    5月 10 17:20:53 localhost.localdomain docker[25843]: time="2016-05-10T17:20:53.472971094+08:00" level=info msg="Gr...nds"
    5月 10 17:20:53 localhost.localdomain docker[25843]: time="2016-05-10T17:20:53.481588751+08:00" level=info msg="Fi...rue"
    5月 10 17:20:53 localhost.localdomain docker[25843]: time="2016-05-10T17:20:53.920160432+08:00" level=info msg="De...ess"
    5月 10 17:20:54 localhost.localdomain docker[25843]: time="2016-05-10T17:20:54.164898620+08:00" level=info msg="Lo...rt."
    5月 10 17:20:54 localhost.localdomain docker[25843]: time="2016-05-10T17:20:54.164959108+08:00" level=info msg="Lo...ne."
    5月 10 17:20:54 localhost.localdomain docker[25843]: time="2016-05-10T17:20:54.164968575+08:00" level=info msg="Da...ion"
    5月 10 17:20:54 localhost.localdomain docker[25843]: time="2016-05-10T17:20:54.164982311+08:00" level=info msg="Do...11.1
    5月 10 17:20:54 localhost.localdomain docker[25843]: time="2016-05-10T17:20:54.178989101+08:00" level=info msg="AP...ock"
    5月 10 17:20:54 localhost.localdomain systemd[1]: Started Docker Application Container Engine.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@localhost ~]# docker pull busybox
    Using default tag: latest
    latest: Pulling from library/busybox
    385e281300cc: Pull complete
    a3ed95caeb02: Pull complete
    Digest: sha256:4a887a2326ec9e0fa90cce7b4764b0e627b5d6afcb81a3f73c85dc29cea00048
    Status: Downloaded newer image for busybox:latest
    [root@localhost ~]# docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE

    busybox             latest              47bcc53f74dc        7 weeks ago         1.113 MB



    gedit /usr/lib/systemd/system/docker.service

    # ExecStart=/usr/bin/docker daemon -H fd://
    ExecStart=/usr/bin/docker daemon -s overlay



    dnf install openvswitch

    /usr/share/openvswitch/scripts/ovs-ctl --system-id=random start

    git clone https://github.com/imunes/imunes.git
    cd imunes
    make install


    systemctl daemon-reload

    systemctl start docker.service

    docker pull busybox

    docker run --rm -it busybox /bin/sh


    [root@localhost imunes]# imunes -p
    Using default tag: latest
    latest: Pulling from imunes/vroot
    03e1855d4f31: Pull complete
    a3ed95caeb02: Pull complete
    8428141120f6: Pull complete
    19298bcb548f: Pull complete
    Digest: sha256:e177e52c9db82609cd8b2b5515717c684777c89c59fabf8a62ada5cccec4be3c
    Status: Downloaded newer image for imunes/vroot:latest
    [root@localhost imunes]# docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    busybox             latest              47bcc53f74dc        7 weeks ago         1.113 MB
    imunes/vroot        latest              b371dc438151        3 months ago        329.1 MB
    [root@localhost imunes]# imunes




    [root@localhost ~]# docker run --rm -it busybox /bin/sh
    / # [root@localhost ~]#
    [root@localhost ~]# docker info | grep Storage
    Storage Driver: overlay
    [root@localhost ~]# docker run --rm -it busybox /bin/sh
    / # ls
    bin   dev   etc   home  proc  root  sys   tmp   usr   var
    / # [root@localhost ~]# ps aux|grep docker
    root     25843  2.7  0.6 753080 53884 ?        Ssl  17:20   0:18 /usr/bin/docker daemon -s overlay
    root     25850  0.0  0.2 364616 16032 ?        Ssl  17:20   0:00 docker-containerd -l /var/run/docker/libcontainerd/docker-containerd.sock --runtime docker-runc
    root     26711  0.0  0.0 200696  3344 ?        Sl   17:30   0:00 docker-containerd-shim 2f963da4a7282c6914964f632bea7f1d72d3544d6cf621044a1a0f6fe4f4c711 /var/run/docker/libcontainerd/2f963da4a7282c6914964f632bea7f1d72d3544d6cf621044a1a0f6fe4f4c711 docker-runc
    root     27337  0.0  0.0 175740  6536 pts/2    S+   17:30   0:00 xterm -sb -rightbar -T IMUNES: router1 (console) bash -e docker exec -it i832d0.n0 /bin/bash
    root     27340  0.0  0.3 343540 26552 pts/3    Ssl+ 17:30   0:00 docker exec -it i832d0.n0 /bin/bash
    root     27347  0.0  0.0 192756  3516 ?        Sl   17:30   0:00 docker-containerd-shim 2f963da4a7282c6914964f632bea7f1d72d3544d6cf621044a1a0f6fe4f4c711 /var/run/docker/libcontainerd/2f963da4a7282c6914964f632bea7f1d72d3544d6cf621044a1a0f6fe4f4c711 docker-runc
    root     27449  0.0  0.0 118496  2288 pts/0    S+   17:32   0:00 grep --color=auto docker
    [root@localhost ~]# ps aux|grep docker
    root     25843  2.6  0.6 753080 53884 ?        Ssl  17:20   0:19 /usr/bin/docker daemon -s overlay
    root     25850  0.0  0.2 364616 16036 ?        Ssl  17:20   0:00 docker-containerd -l /var/run/docker/libcontainerd/docker-containerd.sock --runtime docker-runc
    root     26711  0.0  0.0 200696  3344 ?        Sl   17:30   0:00 docker-containerd-shim 2f963da4a7282c6914964f632bea7f1d72d3544d6cf621044a1a0f6fe4f4c711 /var/run/docker/libcontainerd/2f963da4a7282c6914964f632bea7f1d72d3544d6cf621044a1a0f6fe4f4c711 docker-runc
    root     27460  0.0  0.0 118496  2292 pts/0    S+   17:32   0:00 grep --color=auto docker
    [root@localhost ~]# docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    busybox             latest              47bcc53f74dc        7 weeks ago         1.113 MB
    imunes/vroot        latest              b371dc438151        3 months ago        329.1 MB
    [root@localhost ~]#

  • 相关阅读:
    排序算法(I)冒泡排序
    C#常用类string
    HashMap----工作原理
    Java计算字符串中字母出现的次数
    数据库优化
    线程和进程的区别(详细)
    SpringMVC工作原理
    jsp运行原理及运行过程
    一个公告
    SR
  • 原文地址:https://www.cnblogs.com/ztguang/p/12646662.html
Copyright © 2011-2022 走看看