Docker安装的坑

problem with installed package containerd.io-1.2.6-3.3.fc30.x86_64

执行yum install -y docker-ce

报错了,查资料执行

yum install https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.4.3-3.1.el8.x86_64.rpm
又有冲突,报错

 Problem: problem with installed package containers-common-2:1-2.module_el8.5.0+890+6b136101.noarch
  - package containers-common-2:1-2.module_el8.5.0+890+6b136101.noarch requires runc, but none of the providers can be installed
  - package containerd.io-1.2.6-3.3.fc30.x86_64 conflicts with containerd provided by containerd.io-1.4.3-3.1.el8.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by containerd.io-1.2.6-3.3.fc30.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with containerd provided by containerd.io-1.2.6-3.3.fc30.x86_64
  - cannot install both containerd.io-1.4.3-3.1.el8.x86_64 and containerd.io-1.2.6-3.3.fc30.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64
  - package containerd.io-1.4.3-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64
  - conflicting requests
  - package runc-1.0.0-56.rc5.dev.git2abd837.module_el8.3.0+569+1bada2e4.x86_64 is filtered out by modular filtering
  - package runc-1.0.0-66.rc10.module_el8.5.0+1004+c00a74f5.x86_64 is filtered out by modular filtering
  - package runc-1.0.0-72.rc92.module_el8.5.0+1006+8d0e68a2.x86_64 is filtered out by modular filtering

应该是版本的问题,找到对应版本,执行

yum install https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.4.3-3.1.el8.x86_64.rpm --allowerasing

解决

安装Elasticsearch,你可以按照以下步骤进行操作: 1. 首先,创建并启动一个Elasticsearch容器。你可以使用以下命令: ``` docker run --name=es -p 9200:9200 -p 9300:9300 \ -e "discovery.type=single-node" \ -v $PWD/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \ -v $PWD/data:/usr/share/elasticsearch/data \ -v $PWD/logs:/usr/share/elasticsearch/logs \ -v $PWD/plugins:/usr/share/elasticsearch/plugins \ -d elasticsearch:7.12.1 ``` 这个命令会创建一个名为"es"的容器,并将Elasticsearch的端口映射到主机的9200和9300端口。同时,它会挂载配置文件、数据、日志和插件目录到主机上,以便进行配置和管理。\[3\] 2. 接下来,创建并启动一个Kibana容器,用于可视化和管理Elasticsearch。你可以使用以下命令: ``` docker run -d -p 5601:5601 --name kibana --link elasticsearch:elasticsearch docker.io/kibana:7.12.1 ``` 这个命令会创建一个名为"kibana"的容器,并将Kibana的端口映射到主机的5601端口。同时,它会将Kibana与之前创建的Elasticsearch容器进行链接,以便进行通信和数据交互。\[1\] 3. 最后,安装Elasticsearch的插件。你可以使用以下命令: ``` elasticsearch-plugin install file:/usr/share/elasticsearch/elasticsearch-analysis-ik-7.12.1.zip ``` 这个命令会安装名为"elasticsearch-analysis-ik"的插件,该插件用于中文分词功能。你需要将插件文件路径替换为你实际下载的插件文件路径。\[2\] 通过按照以上步骤进行操作,你就可以成功安装和配置Elasticsearch,并使用Kibana进行可视化和管理了。 #### 引用[.reference_title] - *1* *2* *3* [Docker安装Elasticsearch及相关插件详细步骤,全程亲测避](https://blog.csdn.net/secretdaixin/article/details/128201184)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值