centos8.2安装docker

[root@localhost ]# yum install docker
上次元数据过期检查:13:42:31 前,执行于 2020年06月21日 星期日 02时30分43秒。
All matches were filtered out by modular filtering for argument: docker
错误:没有任何匹配: docker
[root@localhost ]# yum install docker-ce docker-ce-cli containerd.io
上次元数据过期检查:13:47:08 前,执行于 2020年06月21日 星期日 02时30分43秒。
No match for argument: docker-ce
No match for argument: docker-ce-cli
No match for argument: containerd.io
错误:没有任何匹配: docker-ce docker-ce-cli containerd.io
[root@localhost ]# yum install docker-ce
上次元数据过期检查:13:47:22 前,执行于 2020年06月21日 星期日 02时30分43秒。
No match for argument: docker-ce
错误:没有任何匹配: docker-ce
[root@localhost ]# yum install containerd.io
上次元数据过期检查:13:47:36 前,执行于 2020年06月21日 星期日 02时30分43秒。
No match for argument: containerd.io
错误:没有任何匹配: containerd.io
[root@localhost ]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
bash: yum-config-manager: 未找到命令...
安装软件包“yum-utils”以提供命令“yum-config-manager”? [N/y] y

  • 正在队列中等待...
  • 装入软件包列表...
    下列软件包必须安装:
    yum-utils-4.0.12-3.el8.noarch Yum-utils CLI compatibility layer
    继续更改? [N/y] y
  • 正在队列中等待...
  • 正在等待认证...
  • 正在队列中等待...
  • 正在下载软件包...
  • 正在请求数据...
  • 正在测试更改...
  • 正在安装软件包...
    添加仓库自:https://download.docker.com/linux/centos/docker-ce.repo

[root@localhost ]# yum install containerd.io
Docker CE Stable - x86_64 11 kB/s | 24 kB 00:02
上次元数据过期检查:0:00:01 前,执行于 2020年06月21日 星期日 16时19分36秒。
依赖关系解决。
=====================================================================================================
软件包 架构 版本 仓库 大小
=====================================================================================================
安装:
containerd.io x86_64 1.2.0-3.el7 docker-ce-stable 22 M
事务概要
=====================================================================================================
安装 1 软件包

总下载:22 M
安装大小:88 M
确定吗?[y/N]: y
下载软件包:
containerd.io-1.2.0-3.el7.x86_64.rpm 1.2 MB/s | 22 MB 00:18


总计 1.2 MB/s | 22 MB 00:18
警告:/var/cache/dnf/docker-ce-stable-091d8a9c23201250/packages/containerd.io-1.2.0-3.el7.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 621e9f35: NOKEY
Docker CE Stable - x86_64 513 B/s | 1.6 kB 00:03
导入 GPG 公钥 0x621E9F35:
Userid: "Docker Release (CE rpm) [email protected]"
指纹: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
来自: https://download.docker.com/linux/centos/gpg
确定吗?[y/N]: y
导入公钥成功
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : containerd.io-1.2.0-3.el7.x86_64 1/1
运行脚本: containerd.io-1.2.0-3.el7.x86_64 1/1
验证 : containerd.io-1.2.0-3.el7.x86_64 1/1
Installed products updated.

已安装:
containerd.io-1.2.0-3.el7.x86_64

完毕!
[root@localhost ]# yum install docker-ce docker-ce-cli
上次元数据过期检查:0:00:48 前,执行于 2020年06月21日 星期日 16时19分36秒。
错误:
问题: package docker-ce-3:19.03.11-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed

  • cannot install the best candidate for the job
  • package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
    (尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用最佳选择的软件包)
    [root@localhost ]# yum install docker-ce
    上次元数据过期检查:0:01:00 前,执行于 2020年06月21日 星期日 16时19分36秒。
    错误:
    问题: package docker-ce-3:19.03.11-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  • cannot install the best candidate for the job
  • package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
    (尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用最佳选择的软件包)
    [root@localhost ]#
    [root@localhost ]# yum install device-mapper-persistent-data lvm2
    上次元数据过期检查:0:02:04 前,执行于 2020年06月21日 星期日 16时19分36秒。
    软件包 device-mapper-persistent-data-0.8.5-3.el8.x86_64 已安装。
    软件包 lvm2-8:2.03.08-3.el8.x86_64 已安装。
    依赖关系解决。
    无需任何处理。
    完毕!
    [root@localhost ]# yum makecache
    CentOS-8 - AppStream 5.6 kB/s | 4.3 kB 00:00
    CentOS-8 - Base 5.1 kB/s | 3.9 kB 00:00
    CentOS-8 - Extras 2.0 kB/s | 1.5 kB 00:00
    Docker CE Stable - x86_64 3.8 kB/s | 3.5 kB 00:00
    元数据缓存已建立。
    [root@localhost ]# dnf -y install docker-ce --nobest
    上次元数据过期检查:0:00:20 前,执行于 2020年06月21日 星期日 16时22分01秒。
    依赖关系解决。

问题: package docker-ce-3:19.03.11-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed

  • cannot install the best candidate for the job
  • package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  • package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
    =====================================================================================================
    软件包 架构 版本 仓库 大小
    =====================================================================================================
    安装:
    docker-ce x86_64 3:18.09.1-3.el7 docker-ce-stable 19 M
    安装依赖关系:
    docker-ce-cli x86_64 1:19.03.11-3.el7 docker-ce-stable 38 M
    libcgroup x86_64 0.41-19.el8 BaseOS 70 k
    跳过存在损坏依赖关系的软件包 :
    docker-ce x86_64 3:19.03.11-3.el7 docker-ce-stable 24 M
    事务概要
    =====================================================================================================
    安装 3 软件包
    跳过 1 软件包

总下载:57 M
安装大小:242 M
下载软件包:
(1/3): libcgroup-0.41-19.el8.x86_64.rpm 1.4 MB/s | 70 kB 00:00
(2/3): docker-ce-18.09.1-3.el7.x86_64.rpm 3.2 MB/s | 19 MB 00:05
(3/3): docker-ce-cli-19.03.11-3.el7.x86_64.rpm 2.4 MB/s | 38 MB 00:15


总计 3.4 MB/s | 57 MB 00:16
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : docker-ce-cli-1:19.03.11-3.el7.x86_64 1/3
运行脚本: docker-ce-cli-1:19.03.11-3.el7.x86_64 1/3
运行脚本: libcgroup-0.41-19.el8.x86_64 2/3
安装 : libcgroup-0.41-19.el8.x86_64 2/3
运行脚本: libcgroup-0.41-19.el8.x86_64 2/3
运行脚本: docker-ce-3:18.09.1-3.el7.x86_64 3/3
安装 : docker-ce-3:18.09.1-3.el7.x86_64 3/3
运行脚本: docker-ce-3:18.09.1-3.el7.x86_64 3/3
验证 : libcgroup-0.41-19.el8.x86_64 1/3
验证 : docker-ce-3:18.09.1-3.el7.x86_64 2/3
验证 : docker-ce-cli-1:19.03.11-3.el7.x86_64 3/3
Installed products updated.

已安装:
docker-ce-3:18.09.1-3.el7.x86_64 docker-ce-cli-1:19.03.11-3.el7.x86_64
libcgroup-0.41-19.el8.x86_64

跳过的:
docker-ce-3:19.03.11-3.el7.x86_64

完毕!
[root@localhost ]# docker

Usage: docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
--config string Location of client config files (default "/root/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides
DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal")
(default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit

Management Commands:
builder Manage builds
config Manage Docker configs
container Manage containers
context Manage contexts
engine Manage the docker engine
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes

Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
deploy Deploy a new stack or update an existing stack
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes

Run 'docker COMMAND --help' for more information on a command.
[root@localhost ]#

你可能感兴趣的:(centos8.2安装docker)