首页 > 其他分享 >doceker 安装

doceker 安装

时间:2023-05-01 16:02:43浏览次数:36  
标签:CentOS com doceker yum 版本 64 docker 安装


 


CentOS Docker 安装

Docker支持以下的CentOS版本:

CentOS 7 (64-bit)

CentOS 6.5 (64-bit) 或更高的版本

 

前提条件

目前,CentOS 仅发行版本中的内核支持 Docker。

Docker 运行在 CentOS 7 上,要求系统为64位、系统内核版本为 3.10 以上。

Docker 运行在 CentOS-6.5 或更高的版本的 CentOS 上,要求系统为64位、系统内核版本为 2.6.32-431 或者更高版本。

 

查看自己的内核

uname命令用于打印当前系统相关信息(内核版本号、硬件架构、主机名称和操作系统类型等)。

doceker 安装_Docker

 

查看已安装的CentOS版本信息(CentOS6.8有,CentOS7无该命令)

doceker 安装_CentOS_02

 

doceker 安装_CentOS_03

 我的系统版本是6.5的 ---------------------------------------------------------------------------------------------------------------------------------

1、 yum install -y epel-release

2、yum install -y docker-io 

我的centos报错:

已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
错误:Cannot retrieve metalink for repository: epel. Please verify its path and try again
使用如下方法解决:

参考URL: http://www.netpc.com.cn/593.html

处理很简单,修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉。即可。

继续执行该命令又报错了:

[root@localhost 桌面]# yum install -y docker-io
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.cn99.com
 * updates: mirrors.cn99.com
No package docker-io available.
错误:无须任何处理

yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm

3、启动docker服务

service docker start

4、查看docker版本

docker version
 

5、配置阿里云的镜像加速器

doceker 安装_docker_04

 

使用该命令 加到docker 的配置文件中

vim /etc/sysconfig/docker

doceker 安装_CentOS_05

 

 

 

标签:CentOS,com,doceker,yum,版本,64,docker,安装
From: https://blog.51cto.com/u_11343833/6238951

相关文章

  • centos7 安装centos桌面
    一、输入命令yumgroupinstall"GNOMEDesktop""GraphicalAdministrationTools"二、设置系统启动等级。systemctlget-default#获取当前系统运行形式,会显示multi-user.target(命令行终端),或者:graphical.targetsystemctlset-defaultgraphical.target#设置默认启动为图形界面,re......
  • Centos7 安装 python3.9
    今天差点把服务器搞砖了,3.6无法满足要求,3.7一直装不上。重装之前遇到这篇文章,搞定Centos7系统安装Python3.9图文教程......
  • P01 Maven安装与配置
    目录安装前提下载Maven包解压配置环境变量关键配置配置本地仓库地址配置阿里云提供的镜像仓库配置Maven工程的基础JDK版本IDEA下配置Maven安装前提本地已安装配置JDK,可以在cmd窗口,输入jave-version进行查看Maven官网地址:https://maven.apache.org/下载地址:https:......
  • 使用 Docker Compose 安装 MongoDB
    最近学习Docker,试着在Docker里安装MongoDB,按照镜像mongo文档一顿操作猛如虎。快速开始写个docker-compose.yml文件:version:'3.8'services:db:image:mongocontainer_name:mongodb-containerports:-'27017:27017'......
  • PIL、Pillow安装使用方法
    PIL(PythonImagingLibrary)是Python常用的图像处理库,而Pillow是PIL的一个友好Fork,提供了了广泛的文件格式支持,强大的图像处理能力,主要包括图像储存、图像显示、格式转换以及基本的图像处理操作等。Pillow的文档:http://pillow.readthedocs.io/en/latest/Pillow的github:https://githu......
  • win10环境Windows环境下MYSQL5.7免安装版下载、配置(win10-x64位32g内存)
    win101-Windows环境下MYSQL5.7免安装版下载、配置(win10-x64位32g内存)  一、MYSQL免安装版下载二、解压安装三、设置登录、修改密码一、MYSQL免安装版下载1、下载链接:https://downloads.mysql.com/archives/community/.2、MySQL5.x版本以上需要收费,所以我选择了一个最新的(m......
  • linux下安装redis
    1.安装gccyuminstall-ygcc-c++2.下载安装包https://download.redis.io/releases/redis-6.2.0.tar.gz3.解压tar-zxvfredis-6.2.0.tar.gz4.编译安装cdredis-6.2.0make##/home/redis为安装目录##makeinstallPREFIX=/home/redis5.拷贝配置文件并授权mkdir-......
  • SQL Server2012安装
    一,安装前准备工作1,安装包  2,关闭防火墙(必须)3,关闭杀毒软件(我没有关闭杀毒软件也安装成功了) 二,安装过程点“setup.exe”   Developer版本,自带密钥    报错:防火墙警告,是因为我安装之前没有关闭防火墙解决:关闭防火墙,点“重新运行”下,就全部运行通过......
  • MariaBD安装配置
    官方地址:https://mariadb.com/docs/server/deploy/topologies/single-node/community-server-10-5/YUM安装:1、下载用到wget工具;yuminstallwget2、下载MariaDBrepo的安装文件;默认下载到当前文件夹wgethttps://r.mariadb.com/downloads/mariad......
  • ESXI 群辉安装注意事项
    系统/磁盘类型Linux系统选择其他4.x或更高版本的Linux(64位),选择其他64位不行,没有sata控制器查找设备使用这个而不要用域内iphttps://finds.synology.com或http://10.10.10.104:5000confirm:disk_format_dialog_input_model_title报错不要使用Safari浏览器!!......