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

[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) docker@docker.com"
指纹: 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 ]#

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,457评论 5 459
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,837评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,696评论 0 319
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,183评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,057评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,105评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,520评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,211评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,482评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,574评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,353评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,213评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,576评论 3 298
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,897评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,174评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,489评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,683评论 2 335