首页 > 系统相关 >在 CentOS 8 环境下安装 docker 遇到的一些问题

在 CentOS 8 环境下安装 docker 遇到的一些问题

时间:2023-08-31 18:44:19浏览次数:49  
标签:CentOS centos basearch repo mirrorlist releasever docker 安装

因为 CentOS 8 已经停止维护了,如果原来系统中的软件源已经被改的乱七八糟了,推荐全部删掉重新下载:

# 阿里云
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

或者自行创建 CentOS-Base.repo,如清华的:

# CentOS-Base.repo
#
[BaseOS]
name=CentOS-$releasever - Base
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5.2111/BaseOS/$basearch/os/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[AppStream]
name=CentOS-$releasever - AppStream
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5.2111/AppStream/$basearch/os/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infra
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[PowerTools]
name=CentOS-$releasever - PowerTools
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5.2111/PowerTools/$basearch/os/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5.2111/extras/$basearch/os/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.5.2111/centosplus/$basearch/os/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

如果遇到错误 Failed to start docker: Access denied,可以尝试执行命令

kill -TERM 1

参考:https://superuser.com/questions/1125250/systemctl-access-denied-when-root/1130976

标签:CentOS,centos,basearch,repo,mirrorlist,releasever,docker,安装
From: https://www.cnblogs.com/xwgli/p/17670205.html

相关文章

  • Virtualbox中FreeBSD安装lxqt桌面后鼠标无响应
    1程序版本及问题Virtualbox7.0FreeBSD13.1xorg7.7_3lxqt1.3.0virtualbox-ose-additions6.1.46问题:通过startx启动lxqt桌面后鼠标无响应。2问题解决步骤打开/etc/X11/xorg.conf文件1定位到ServerLayout新增一行Option"AutoAddDevices""false"如下:Section"S......
  • 随身WiFi安装青龙面板通用依赖安装及部分报错解决方法
    使用方法:到青龙面板--依赖管理--新建依赖依赖类型选择对应名称一键复制下面的依赖,粘贴到名称可填写框框记得选自动拆分NodeJs依赖库crypto-jsprettytabledotenvjsdomdate-fnstough-cookietslibws@7.4.3ts-md5jsdom-gjiebafsform-datajson5global-agentpng-js@ty......
  • centos 安装 docker-compose 的快速简单办法
    直接使用yuminstalldocker-compose 会返回nothingtodo,可以使用pip3来安装安装DockerCompose(1)执行如下命令安装 pip3:yum-yinstallpython3-pippip3install--upgradepip-ihttps://pypi.tuna.tsinghua.edu.cn/simple (2)执行如下命令安装 docker-compose:......
  • Anaconda——安装及基本使用
    前言官网:https://www.anaconda.com/下载页面:https://www.anaconda.com/download(巨慢|还是访问tuna来下载吧)清华大学开源软件镜像站:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/内容安装很简单|下载完应用程序后,一步一步安装即可,切记一定要记得勾选写入path......
  • 软件测试|Mac安装appium报权限问题
    前言appium是我们最常用的app自动化测试工具,基本上每一个自动化测试工程师都需要安装appium环境,我的一位朋友在给自己的新买的Mac电脑安装appium时出现了一个报错,报错指向权限被拒绝,无法下载appium,这是一个很普遍的权限问题,下面就为大家介绍一下解决appium安装时的权限被拒绝的......
  • ES 入门一:ES和Kibanin的安装&插件安装
    一、ES1、ES的安装:   官网下载,解压即用2、es的启动:部署的http://localhost:9200访问,页面的内容3、ES的插件的安装:(1)已安装插件的查看:    sudo./elasticsearch-pluginlist(2)安装插件:sudo./elasticsearch-plugininstallanalysis-icu 注意:es不允许roo......
  • linux centos7 开启tomcat不成功
    在bin文件夹下打开终端,输入./start.sh后报错权限不够解决方法:依旧在终端上输入chmod+x*.sh(网上说输入chmod+xstartup.sh也可以,但我没成功)输入ll可看到*.sh的文件都高亮此时再次输入./startup.sh即可成功 ......
  • BCLinux-docker安装配置
    一、系统介绍   Bclinux.x86_64、JDK1.8   系统下载地址:https://mirrors.cmecloud.cn/bclinux/二、Docker安装1、解压tar-xvfdocker-20.10.9.tgz2、将解压出来的docker文件内容移动到/usr/bin/目录下cpdocker/*/usr/bin/3、将docker注册为servicevim/etc/systemd/s......
  • kafka安装以及参数
    kafka安装安装JDKyuminstall-yjava-1.8.0-openjdk.x86_64查看版本java-versionkafka是分布式的,需要多台机器,并且保证机器之间是免密登录同时需要用zookeeper集群负责管理。1、kafka版本选择,从官网下载即可,我这使用的是kafka_2.12-2.70.tgz2、brokers节点分配,注......
  • centos 离线安装 mysql5.7
    下载离线安装包tarhttps://dev.mysql.com/downloads/mysql/5.7.html#downloads(mysql-5.7.43-linux-glibc2.12-x86_64.tar.gz)移动到安装目录解压/usr/local/tar-zxvfmysql-5.7.36-linux-glibc2.12-x86_64.tar.gzmv mysql-5.7.36-linux-glibc2.12-x86_64mysql创建用......