课程第27次:2020-03-30星期一
1. 水平虚拟机1.1 crossover
# yum localinstall crossover-19.rpm
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 1:12:18 ago on Mon 30 Mar 2020 07:48:25 PM CST.
Dependencies resolved.
===================================================================================================================
Package Arch Version Repository Size
===================================================================================================================
Installing:
crossover i386 19.0.1-1 @commandline 215 M
Installing dependencies:
libICE i686 1.0.9-13.el8 AppStream 76 k
libSM i686 1.2.3-1.el8 AppStream 48 k
libX11 i686 1.6.7-1.el8 AppStream 640 k
libX11-xcb i686 1.6.7-1.el8 AppStream 14 k
libXau i686 1.0.8-13.el8 AppStream 36 k
libXcursor i686 1.1.15-3.el8 AppStream 38 k
libXdamage i686 1.1.4-14.el8 AppStream 27 k
libXext i686 1.3.3-9.el8 AppStream 48 k
libXfixes i686 5.0.3-7.el8 AppStream 25 k
libXi i686 1.7.9-7.el8 AppStream 51 k
libXrandr i686 1.5.1-7.el8 AppStream 35 k
libXrender i686 0.9.10-7.el8 AppStream 34 k
libXxf86vm i686 1.1.4-9.el8 AppStream 20 k
libdrm i686 2.4.96-2.el8 AppStream 177 k
libglvnd i686 1:1.0.1-0.9.git5baa1e5.el8 AppStream 89 k
libglvnd-glx i686 1:1.0.1-0.9.git5baa1e5.el8 AppStream 126 k
libxcb i686 1.13-5.el8 AppStream 249 k
libxshmfence i686 1.3-2.el8 AppStream 13 k
mesa-libGL i686 18.3.1-2.el8 AppStream 240 k
mesa-libglapi i686 18.3.1-2.el8 AppStream 71 k
avahi-libs i686 0.7-19.el8 BaseOS 67 k
bzip2-libs i686 1.0.6-26.el8 BaseOS 49 k
cups-libs i686 1:2.2.6-25.el8 BaseOS 458 k
dbus-libs i686 1:1.12.8-7.el8 BaseOS 198 k
expat i686 2.2.5-3.el8 BaseOS 110 k
freetype i686 2.9.1-4.el8 BaseOS 410 k
gmp i686 1:6.1.2-8.el8 BaseOS 312 k
gnutls i686 3.6.5-2.el8 BaseOS 918 k
keyutils-libs i686 1.5.10-6.el8 BaseOS 34 k
krb5-libs i686 1.16.1-22.el8 BaseOS 906 k
libblkid i686 2.32.1-8.el8 BaseOS 229 k
libcap i686 2.25-9.el8 BaseOS 58 k
libcom_err i686 1.44.3-2.el8 BaseOS 48 k
libffi i686 3.1-18.el8 BaseOS 35 k
libgcrypt i686 1.8.3-2.el8 BaseOS 440 k
libgpg-error i686 1.31-1.el8 BaseOS 247 k
libidn2 i686 2.0.5-1.el8 BaseOS 91 k
libmount i686 2.32.1-8.el8 BaseOS 243 k
libnsl i686 2.28-42.el8 BaseOS 91 k
libnsl x86_64 2.28-42.el8 BaseOS 87 k
libpciaccess i686 0.14-1.el8 BaseOS 35 k
libpng i686 2:1.6.34-5.el8 BaseOS 136 k
libselinux i686 2.8-6.el8 BaseOS 186 k
libsepol i686 2.8-2.el8 BaseOS 366 k
libstdc++ i686 8.2.1-3.5.el8 BaseOS 485 k
libtasn1 i686 4.13-3.el8 BaseOS 79 k
libunistring i686 0.9.9-3.el8 BaseOS 429 k
libuuid i686 2.32.1-8.el8 BaseOS 94 k
libverto i686 0.3.0-5.el8 BaseOS 25 k
lz4-libs i686 1.8.1.2-4.el8 BaseOS 57 k
nettle i686 3.4.1-1.el8 BaseOS 322 k
openssl-libs i686 1:1.1.1-8.el8 BaseOS 1.4 M
p11-kit i686 0.23.14-4.el8 BaseOS 271 k
pcre2 i686 10.32-1.el8 BaseOS 246 k
systemd-libs i686 239-13.el8 BaseOS 581 k
xz-libs i686 5.2.4-3.el8 BaseOS 102 k
zlib i686 1.2.11-10.el8 BaseOS 103 k
Installing weak dependencies:
openssl-pkcs11 i686 0.4.8-2.el8 BaseOS 68 k
Transaction Summary
===================================================================================================================
Install59 Packages
Total size: 227 M
Total download size: 12 M
Installed size: 610 M
Is this ok : y
Downloading Packages:
(1/58): libSM-1.2.3-1.el8.i686.rpm 1.2 MB/s |48 kB 00:00
(2/58): libX11-xcb-1.6.7-1.el8.i686.rpm 973 kB/s |14 kB 00:00
(3/58): libICE-1.0.9-13.el8.i686.rpm 1.2 MB/s |76 kB 00:00
(4/58): libXau-1.0.8-13.el8.i686.rpm 1.4 MB/s |36 kB 00:00
(5/58): libXcursor-1.1.15-3.el8.i686.rpm 1.1 MB/s |38 kB 00:00
(6/58): libXdamage-1.1.4-14.el8.i686.rpm 2.2 MB/s |27 kB 00:00
(7/58): libXext-1.3.3-9.el8.i686.rpm 2.9 MB/s |48 kB 00:00
(8/58): libXfixes-5.0.3-7.el8.i686.rpm 924 kB/s |25 kB 00:00
(9/58): libXi-1.7.9-7.el8.i686.rpm 1.2 MB/s |51 kB 00:00
(10/58): libX11-1.6.7-1.el8.i686.rpm 3.5 MB/s | 640 kB 00:00
(11/58): libXrandr-1.5.1-7.el8.i686.rpm 1.1 MB/s |35 kB 00:00
(12/58): libXrender-0.9.10-7.el8.i686.rpm 1.2 MB/s |34 kB 00:00
(13/58): libXxf86vm-1.1.4-9.el8.i686.rpm 679 kB/s |20 kB 00:00
(14/58): libdrm-2.4.96-2.el8.i686.rpm 3.8 MB/s | 177 kB 00:00
(15/58): libglvnd-1.0.1-0.9.git5baa1e5.el8.i686.rpm 2.7 MB/s |89 kB 00:00
(16/58): libglvnd-glx-1.0.1-0.9.git5baa1e5.el8.i686.rpm 2.3 MB/s | 126 kB 00:00
(17/58): libxshmfence-1.3-2.el8.i686.rpm 504 kB/s |13 kB 00:00
(18/58): libxcb-1.13-5.el8.i686.rpm 3.9 MB/s | 249 kB 00:00
(19/58): mesa-libglapi-18.3.1-2.el8.i686.rpm 1.8 MB/s |71 kB 00:00
(20/58): avahi-libs-0.7-19.el8.i686.rpm 1.8 MB/s |67 kB 00:00
(21/58): bzip2-libs-1.0.6-26.el8.i686.rpm 1.1 MB/s |49 kB 00:00
(22/58): mesa-libGL-18.3.1-2.el8.i686.rpm 2.0 MB/s | 240 kB 00:00
(23/58): expat-2.2.5-3.el8.i686.rpm 4.2 MB/s | 110 kB 00:00
(24/58): dbus-libs-1.12.8-7.el8.i686.rpm 3.5 MB/s | 198 kB 00:00
(25/58): cups-libs-2.2.6-25.el8.i686.rpm 3.2 MB/s | 458 kB 00:00
(26/58): gmp-6.1.2-8.el8.i686.rpm 3.6 MB/s | 312 kB 00:00
(27/58): keyutils-libs-1.5.10-6.el8.i686.rpm 1.7 MB/s |34 kB 00:00
(28/58): freetype-2.9.1-4.el8.i686.rpm 2.3 MB/s | 410 kB 00:00
(29/58): libblkid-2.32.1-8.el8.i686.rpm 3.2 MB/s | 229 kB 00:00
(30/58): libcap-2.25-9.el8.i686.rpm 7.8 MB/s |58 kB 00:00
(31/58): libcom_err-1.44.3-2.el8.i686.rpm 5.6 MB/s |48 kB 00:00
(32/58): gnutls-3.6.5-2.el8.i686.rpm 4.6 MB/s | 918 kB 00:00
(33/58): libffi-3.1-18.el8.i686.rpm 1.2 MB/s |35 kB 00:00
(34/58): krb5-libs-1.16.1-22.el8.i686.rpm 4.9 MB/s | 906 kB 00:00
(35/58): libidn2-2.0.5-1.el8.i686.rpm 4.2 MB/s |91 kB 00:00
(36/58): libgpg-error-1.31-1.el8.i686.rpm 3.5 MB/s | 247 kB 00:00
(37/58): libgcrypt-1.8.3-2.el8.i686.rpm 4.1 MB/s | 440 kB 00:00
(38/58): libnsl-2.28-42.el8.i686.rpm 3.1 MB/s |91 kB 00:00
(39/58): libpciaccess-0.14-1.el8.i686.rpm 2.4 MB/s |35 kB 00:00
(40/58): libnsl-2.28-42.el8.x86_64.rpm 1.9 MB/s |87 kB 00:00
(41/58): libmount-2.32.1-8.el8.i686.rpm 2.6 MB/s | 243 kB 00:00
(42/58): libpng-1.6.34-5.el8.i686.rpm 3.9 MB/s | 136 kB 00:00
(43/58): libselinux-2.8-6.el8.i686.rpm 2.3 MB/s | 186 kB 00:00
(44/58): libtasn1-4.13-3.el8.i686.rpm 4.0 MB/s |79 kB 00:00
(45/58): libsepol-2.8-2.el8.i686.rpm 2.7 MB/s | 366 kB 00:00
(46/58): libuuid-2.32.1-8.el8.i686.rpm 5.5 MB/s |94 kB 00:00
(47/58): libstdc++-8.2.1-3.5.el8.i686.rpm 3.1 MB/s | 485 kB 00:00
(48/58): libverto-0.3.0-5.el8.i686.rpm 1.0 MB/s |25 kB 00:00
(49/58): lz4-libs-1.8.1.2-4.el8.i686.rpm 882 kB/s |57 kB 00:00
(50/58): libunistring-0.9.9-3.el8.i686.rpm 2.6 MB/s | 429 kB 00:00
(51/58): openssl-pkcs11-0.4.8-2.el8.i686.rpm 3.1 MB/s |68 kB 00:00
(52/58): nettle-3.4.1-1.el8.i686.rpm 3.1 MB/s | 322 kB 00:00
(53/58): pcre2-10.32-1.el8.i686.rpm 3.2 MB/s | 246 kB 00:00
(54/58): p11-kit-0.23.14-4.el8.i686.rpm 2.9 MB/s | 271 kB 00:00
(55/58): xz-libs-5.2.4-3.el8.i686.rpm 4.0 MB/s | 102 kB 00:00
(56/58): zlib-1.2.11-10.el8.i686.rpm 4.9 MB/s | 103 kB 00:00
(57/58): systemd-libs-239-13.el8.i686.rpm 6.3 MB/s | 581 kB 00:00
(58/58): openssl-libs-1.1.1-8.el8.i686.rpm 5.8 MB/s | 1.4 MB 00:00
-------------------------------------------------------------------------------------------------------------------
Total 8.5 MB/s |12 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : zlib-1.2.11-10.el8.i686 1/59
Installing : libuuid-2.32.1-8.el8.i686 2/59
Running scriptlet: libuuid-2.32.1-8.el8.i686 2/59
Installing : openssl-pkcs11-0.4.8-2.el8.i686 3/59
Running scriptlet: openssl-pkcs11-0.4.8-2.el8.i686 3/59
Installing : openssl-libs-1:1.1.1-8.el8.i686 4/59
Running scriptlet: openssl-libs-1:1.1.1-8.el8.i686 4/59
Installing : libunistring-0.9.9-3.el8.i686 5/59
Installing : libcom_err-1.44.3-2.el8.i686 6/59
Running scriptlet: libcom_err-1.44.3-2.el8.i686 6/59
Installing : gmp-1:6.1.2-8.el8.i686 7/59
Running scriptlet: gmp-1:6.1.2-8.el8.i686 7/59
Installing : libICE-1.0.9-13.el8.i686 8/59
Installing : libSM-1.2.3-1.el8.i686 9/59
Installing : nettle-3.4.1-1.el8.i686 10/59
Running scriptlet: nettle-3.4.1-1.el8.i686 10/59
Installing : libidn2-2.0.5-1.el8.i686 11/59
Running scriptlet: libidn2-2.0.5-1.el8.i686 11/59
Installing : libblkid-2.32.1-8.el8.i686 12/59
Running scriptlet: libblkid-2.32.1-8.el8.i686 12/59
Installing : libpng-2:1.6.34-5.el8.i686 13/59
Installing : xz-libs-5.2.4-3.el8.i686 14/59
Installing : pcre2-10.32-1.el8.i686 15/59
Installing : lz4-libs-1.8.1.2-4.el8.i686 16/59
Installing : libverto-0.3.0-5.el8.i686 17/59
Installing : libtasn1-4.13-3.el8.i686 18/59
Running scriptlet: libtasn1-4.13-3.el8.i686 18/59
Installing : libstdc++-8.2.1-3.5.el8.i686 19/59
Running scriptlet: libstdc++-8.2.1-3.5.el8.i686 19/59
Installing : libsepol-2.8-2.el8.i686 20/59
Running scriptlet: libsepol-2.8-2.el8.i686 20/59
Installing : libselinux-2.8-6.el8.i686 21/59
Running scriptlet: libselinux-2.8-6.el8.i686 21/59
Installing : mesa-libglapi-18.3.1-2.el8.i686 22/59
Running scriptlet: mesa-libglapi-18.3.1-2.el8.i686 22/59
Installing : libmount-2.32.1-8.el8.i686 23/59
Running scriptlet: libmount-2.32.1-8.el8.i686 23/59
Installing : libpciaccess-0.14-1.el8.i686 24/59
Installing : libdrm-2.4.96-2.el8.i686 25/59
Installing : libnsl-2.28-42.el8.i686 26/59
Installing : libgpg-error-1.31-1.el8.i686 27/59
Installing : libgcrypt-1.8.3-2.el8.i686 28/59
Running scriptlet: libgcrypt-1.8.3-2.el8.i686 28/59
Installing : libffi-3.1-18.el8.i686 29/59
Installing : p11-kit-0.23.14-4.el8.i686 30/59
Running scriptlet: p11-kit-0.23.14-4.el8.i686 30/59
Installing : gnutls-3.6.5-2.el8.i686 31/59
Installing : libcap-2.25-9.el8.i686 32/59
Installing : systemd-libs-239-13.el8.i686 33/59
Running scriptlet: systemd-libs-239-13.el8.i686 33/59
Installing : dbus-libs-1:1.12.8-7.el8.i686 34/59
Running scriptlet: dbus-libs-1:1.12.8-7.el8.i686 34/59
Installing : avahi-libs-0.7-19.el8.i686 35/59
Installing : keyutils-libs-1.5.10-6.el8.i686 36/59
Installing : krb5-libs-1.16.1-22.el8.i686 37/59
Installing : cups-libs-1:2.2.6-25.el8.i686 38/59
Installing : expat-2.2.5-3.el8.i686 39/59
Installing : bzip2-libs-1.0.6-26.el8.i686 40/59
Installing : freetype-2.9.1-4.el8.i686 41/59
Installing : libxshmfence-1.3-2.el8.i686 42/59
Installing : libglvnd-1:1.0.1-0.9.git5baa1e5.el8.i686 43/59
Installing : libXau-1.0.8-13.el8.i686 44/59
Installing : libxcb-1.13-5.el8.i686 45/59
Installing : libX11-1.6.7-1.el8.i686 46/59
Installing : libXext-1.3.3-9.el8.i686 47/59
Installing : libXfixes-5.0.3-7.el8.i686 48/59
Installing : libXrender-0.9.10-7.el8.i686 49/59
Installing : libXcursor-1.1.15-3.el8.i686 50/59
Installing : libXrandr-1.5.1-7.el8.i686 51/59
Installing : libXdamage-1.1.4-14.el8.i686 52/59
Installing : libXi-1.7.9-7.el8.i686 53/59
Installing : libXxf86vm-1.1.4-9.el8.i686 54/59
Installing : libX11-xcb-1.6.7-1.el8.i686 55/59
Installing : libnsl-2.28-42.el8.x86_64 56/59
Installing : libglvnd-glx-1:1.0.1-0.9.git5baa1e5.el8.i686 57/59
Installing : mesa-libGL-18.3.1-2.el8.i686 58/59
Running scriptlet: crossover-19.0.1-1.i386 59/59
Installing : crossover-19.0.1-1.i386 59/59
Running scriptlet: crossover-19.0.1-1.i386 59/59
Verifying : libICE-1.0.9-13.el8.i686 1/59
Verifying : libSM-1.2.3-1.el8.i686 2/59
Verifying : libX11-1.6.7-1.el8.i686 3/59
Verifying : libX11-xcb-1.6.7-1.el8.i686 4/59
Verifying : libXau-1.0.8-13.el8.i686 5/59
Verifying : libXcursor-1.1.15-3.el8.i686 6/59
Verifying : libXdamage-1.1.4-14.el8.i686 7/59
Verifying : libXext-1.3.3-9.el8.i686 8/59
Verifying : libXfixes-5.0.3-7.el8.i686 9/59
Verifying : libXi-1.7.9-7.el8.i686 10/59
Verifying : libXrandr-1.5.1-7.el8.i686 11/59
Verifying : libXrender-0.9.10-7.el8.i686 12/59
Verifying : libXxf86vm-1.1.4-9.el8.i686 13/59
Verifying : libdrm-2.4.96-2.el8.i686 14/59
Verifying : libglvnd-1:1.0.1-0.9.git5baa1e5.el8.i686 15/59
Verifying : libglvnd-glx-1:1.0.1-0.9.git5baa1e5.el8.i686 16/59
Verifying : libxcb-1.13-5.el8.i686 17/59
Verifying : libxshmfence-1.3-2.el8.i686 18/59
Verifying : mesa-libGL-18.3.1-2.el8.i686 19/59
Verifying : mesa-libglapi-18.3.1-2.el8.i686 20/59
Verifying : avahi-libs-0.7-19.el8.i686 21/59
Verifying : bzip2-libs-1.0.6-26.el8.i686 22/59
Verifying : cups-libs-1:2.2.6-25.el8.i686 23/59
Verifying : dbus-libs-1:1.12.8-7.el8.i686 24/59
Verifying : expat-2.2.5-3.el8.i686 25/59
Verifying : freetype-2.9.1-4.el8.i686 26/59
Verifying : gmp-1:6.1.2-8.el8.i686 27/59
Verifying : gnutls-3.6.5-2.el8.i686 28/59
Verifying : keyutils-libs-1.5.10-6.el8.i686 29/59
Verifying : krb5-libs-1.16.1-22.el8.i686 30/59
Verifying : libblkid-2.32.1-8.el8.i686 31/59
Verifying : libcap-2.25-9.el8.i686 32/59
Verifying : libcom_err-1.44.3-2.el8.i686 33/59
Verifying : libffi-3.1-18.el8.i686 34/59
Verifying : libgcrypt-1.8.3-2.el8.i686 35/59
Verifying : libgpg-error-1.31-1.el8.i686 36/59
Verifying : libidn2-2.0.5-1.el8.i686 37/59
Verifying : libmount-2.32.1-8.el8.i686 38/59
Verifying : libnsl-2.28-42.el8.i686 39/59
Verifying : libnsl-2.28-42.el8.x86_64 40/59
Verifying : libpciaccess-0.14-1.el8.i686 41/59
Verifying : libpng-2:1.6.34-5.el8.i686 42/59
Verifying : libselinux-2.8-6.el8.i686 43/59
Verifying : libsepol-2.8-2.el8.i686 44/59
Verifying : libstdc++-8.2.1-3.5.el8.i686 45/59
Verifying : libtasn1-4.13-3.el8.i686 46/59
Verifying : libunistring-0.9.9-3.el8.i686 47/59
Verifying : libuuid-2.32.1-8.el8.i686 48/59
Verifying : libverto-0.3.0-5.el8.i686 49/59
Verifying : lz4-libs-1.8.1.2-4.el8.i686 50/59
Verifying : nettle-3.4.1-1.el8.i686 51/59
Verifying : openssl-libs-1:1.1.1-8.el8.i686 52/59
Verifying : openssl-pkcs11-0.4.8-2.el8.i686 53/59
Verifying : p11-kit-0.23.14-4.el8.i686 54/59
Verifying : pcre2-10.32-1.el8.i686 55/59
Verifying : systemd-libs-239-13.el8.i686 56/59
Verifying : xz-libs-5.2.4-3.el8.i686 57/59
Verifying : zlib-1.2.11-10.el8.i686 58/59
Verifying : crossover-19.0.1-1.i386 59/59
Installed products updated.
Installed:
crossover-19.0.1-1.i386 openssl-pkcs11-0.4.8-2.el8.i686
libICE-1.0.9-13.el8.i686 libSM-1.2.3-1.el8.i686
libX11-1.6.7-1.el8.i686 libX11-xcb-1.6.7-1.el8.i686
libXau-1.0.8-13.el8.i686 libXcursor-1.1.15-3.el8.i686
libXdamage-1.1.4-14.el8.i686 libXext-1.3.3-9.el8.i686
libXfixes-5.0.3-7.el8.i686 libXi-1.7.9-7.el8.i686
libXrandr-1.5.1-7.el8.i686 libXrender-0.9.10-7.el8.i686
libXxf86vm-1.1.4-9.el8.i686 libdrm-2.4.96-2.el8.i686
libglvnd-1:1.0.1-0.9.git5baa1e5.el8.i686 libglvnd-glx-1:1.0.1-0.9.git5baa1e5.el8.i686
libxcb-1.13-5.el8.i686 libxshmfence-1.3-2.el8.i686
mesa-libGL-18.3.1-2.el8.i686 mesa-libglapi-18.3.1-2.el8.i686
avahi-libs-0.7-19.el8.i686 bzip2-libs-1.0.6-26.el8.i686
cups-libs-1:2.2.6-25.el8.i686 dbus-libs-1:1.12.8-7.el8.i686
expat-2.2.5-3.el8.i686 freetype-2.9.1-4.el8.i686
gmp-1:6.1.2-8.el8.i686 gnutls-3.6.5-2.el8.i686
keyutils-libs-1.5.10-6.el8.i686 krb5-libs-1.16.1-22.el8.i686
libblkid-2.32.1-8.el8.i686 libcap-2.25-9.el8.i686
libcom_err-1.44.3-2.el8.i686 libffi-3.1-18.el8.i686
libgcrypt-1.8.3-2.el8.i686 libgpg-error-1.31-1.el8.i686
libidn2-2.0.5-1.el8.i686 libmount-2.32.1-8.el8.i686
libnsl-2.28-42.el8.i686 libnsl-2.28-42.el8.x86_64
libpciaccess-0.14-1.el8.i686 libpng-2:1.6.34-5.el8.i686
libselinux-2.8-6.el8.i686 libsepol-2.8-2.el8.i686
libstdc++-8.2.1-3.5.el8.i686 libtasn1-4.13-3.el8.i686
libunistring-0.9.9-3.el8.i686 libuuid-2.32.1-8.el8.i686
libverto-0.3.0-5.el8.i686 lz4-libs-1.8.1.2-4.el8.i686
nettle-3.4.1-1.el8.i686 openssl-libs-1:1.1.1-8.el8.i686
p11-kit-0.23.14-4.el8.i686 pcre2-10.32-1.el8.i686
systemd-libs-239-13.el8.i686 xz-libs-5.2.4-3.el8.i686
zlib-1.2.11-10.el8.i686
Complete!
#
yum -y install fontconfig.i686fontconfig.x86_64libXcomposite.i686libXcomposite.x86_64libXinerama.i686libXinerama.x86_64libtiff.i686libtiff.x86_64libxml2.i686libxml2.x86_64libxslt.i686libxslt.x86_64mesa-libGLU.i686mesa-libGLU.x86_64pulseaudio-libs.i686pulseaudio-libs.x86_64sane-backends-libs.i686sane-backends-libs.x86_64
2. Docker容器管理者
2.1
wget https://download.docker.com/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
hello_world latest 673178c29db1 4 hours ago 378MB
php 7.3.5-apache 59d2cf691156 10 months ago 378MB
hello-world latest fce289e99eb9 15 months ago 1.84kB
# docker image-h
Flag shorthand -h has been deprecated, please use --help
Usage:docker image COMMAND
Manage images
Commands:
build Build an image from a Dockerfile
history Show the history of an image
import Import the contents from a tarball to create a filesystem image
inspect Display detailed information on one or more images
load Load an image from a tar archive or STDIN
ls List images
prune Remove unused images
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rm Remove one or more images
save Save one or more images to a tar archive (streamed to STDOUT by default)
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Run 'docker image COMMAND --help' for more information on a command.
# docker image rm 673178c29db1
Error response from daemon: conflict: unable to delete 673178c29db1 (must be forced) - image is being used by stopped container c9616db59090
# docker image rm 673178c29db1 -f
Untagged: hello_world:latest
Deleted: sha256:673178c29db1601e7125b2ad54263c645ceb9d841b719bc62f2407b422540e28
Deleted: sha256:c8028948f0cf6eaf014baa7a46d7eb373c3f4c920aa7b5d950838478cfc4cf05
# docker imagels
REPOSITORY TAG IMAGE ID CREATED SIZE
php 7.3.5-apache 59d2cf691156 10 months ago 378MB
hello-world latest fce289e99eb9 15 months ago 1.84kB
# docker image rmfce289e99eb9 -f
Untagged: hello-world:latest
Untagged: hello-world@sha256:f9dfddf63636d84ef479d645ab5885156ae030f611a56f3a7ac7f2fdd86d7e4e
Deleted: sha256:fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e
# ls
Dockerfilesrc
# cd ..
# ls
anaconda-ks.cfgDownloads oracle-rhel8.shPublic Templates
Desktop flash-player-npapi-release.x86_64.rpmoriginal-ks.cfgteam0.config Videos
DOCKER MARIADB Pictures team0.config.m
Documents Music ping104.sh team0.config.n
# mv DOCKERphp_hello_world
# ls
anaconda-ks.cfgflash-player-npapi-release.x86_64.rpmoriginal-ks.cfgPublic Templates
Desktop MARIADB php_hello_worldteam0.config Videos
Documents Music Pictures team0.config.m
Downloads oracle-rhel8.sh ping104.sh team0.config.n
# cd php_hello_world/
# ls
Dockerfilesrc
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
php 7.3.5-apache 59d2cf691156 10 months ago 378MB
# docker build -t php_hello_world./
Sending build context to Docker daemon3.584kB
Step 1/3 : FROM php:7.3.5-apache
---> 59d2cf691156
Step 2/3 : COPY src/ /var/www/html
---> fa60cf253f21
Step 3/3 : EXPOSE 80
---> Running in 35072761e276
Removing intermediate container 35072761e276
---> d7a85e3bd67c
Successfully built d7a85e3bd67c
Successfully tagged php_hello_world:latest
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
php_hello_world latest d7a85e3bd67c 5 seconds ago 378MB
php 7.3.5-apache 59d2cf691156 10 months ago 378MB
# docker containerls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
# docker run -p 9999:80 php_hello_world
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
AH00163: Apache/2.4.25 (Debian) PHP/7.3.5 configured -- resuming normal operations
AH00094: Command line: 'apache2 -D FOREGROUND'
# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5dc025bd76a7 php_hello_world "docker-php-entrypoi…" 2 minutes ago Up 2 minutes 0.0.0.0:9999->80/tcp boring_keldysh
# docker container stop 5dc025bd76a7
5dc025bd76a7
# docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
docker run -p 9999:80 -v /root/php_hello_world/src/:/var/www/html/ php_hello_world
# yum install "*docker*" -y --nobest
Failed to set locale, defaulting to C
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:07:07 ago on Tue Mar 31 05:21:41 2020.
Error:
Problem: conflicting requests
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.06.0.ce-1.el7.centos.x86_64
- package docker-ce-17.06.0.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.06.1.ce-1.el7.centos.x86_64
- package docker-ce-17.06.1.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.06.2.ce-1.el7.centos.x86_64
- package docker-ce-17.06.2.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.09.0.ce-1.el7.centos.x86_64
- package docker-ce-17.09.0.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.09.1.ce-1.el7.centos.x86_64
- package docker-ce-17.09.1.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.12.0.ce-1.el7.centos.x86_64
- package docker-ce-17.12.0.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-17.12.1.ce-1.el7.centos.x86_64
- package docker-ce-17.12.1.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-18.03.0.ce-1.el7.centos.x86_64
- package docker-ce-18.03.0.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-18.03.1.ce-1.el7.centos.x86_64
- package docker-ce-18.03.1.ce-1.el7.centos.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-18.06.0.ce-3.el7.x86_64
- package docker-ce-18.06.0.ce-3.el7.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-18.06.1.ce-3.el7.x86_64
- package docker-ce-18.06.1.ce-3.el7.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-18.06.2.ce-3.el7.x86_64
- package docker-ce-18.06.2.ce-3.el7.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-18.06.3.ce-3.el7.x86_64
- package docker-ce-18.06.3.ce-3.el7.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-3:18.09.0-3.el7.x86_64
- package docker-ce-3:18.09.0-3.el7.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch conflicts with docker-ce provided by docker-ce-3:18.09.1-3.el7.x86_64
- package docker-ce-3:18.09.1-3.el7.x86_64 conflicts with docker provided by podman-docker-1.0.0-2.git921f98f.module+el8+2785+ff8a053f.noarch
- package docker-ce-3:18.09.2-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.3-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.4-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.5-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.6-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.7-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:18.09.9-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.0-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.1-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.2-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.3-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.5-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.6-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.7-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- package docker-ce-17.03.0.ce-1.el7.centos.x86_64 requires docker-ce-selinux >= 17.03.0.ce-1.el7.centos, but none of the providers can be installed
- package docker-ce-17.03.1.ce-1.el7.centos.x86_64 requires docker-ce-selinux >= 17.03.1.ce-1.el7.centos, but none of the providers can be installed
- package docker-ce-17.03.2.ce-1.el7.centos.x86_64 requires docker-ce-selinux >= 17.03.2.ce-1.el7.centos, but none of the providers can be installed
- package docker-ce-17.03.3.ce-1.el7.x86_64 requires docker-ce-selinux >= 17.03.3.ce-1.el7, but none of the providers can be installed
- package containerd.io-1.2.10-3.2.el7.x86_64 is excluded
- package containerd.io-1.2.13-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
- package containerd.io-1.2.2-3.el7.x86_64 is excluded
- package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
- package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
- nothing provides policycoreutils-python needed by docker-ce-selinux-17.03.0.ce-1.el7.centos.noarch
- nothing provides policycoreutils-python needed by docker-ce-selinux-17.03.1.ce-1.el7.centos.noarch
- nothing provides policycoreutils-python needed by docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
- nothing provides policycoreutils-python needed by docker-ce-selinux-17.03.3.ce-1.el7.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
765686189 发表于 2020-3-30 21:22
yum -y install docker-ce --nobest
以上不需要额外dnf源,不过附加常用的dnf repo如下:
页:
[1]