首页 > 其他分享 >快速安装docker

快速安装docker

时间:2022-12-07 22:48:14浏览次数:41  
标签:cn 安装 ce systemctl yum docker 快速

本方法适用于红帽系的linux

#安装yum源
yum-config-manager --add-repo https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
yum makecache fast
#安装docker
yum install docker-ce -y
#设置开机自启
systemctl enable docker
#启动docker
systemctl start docker
#配置加速
cat <<EOF > /etc/docker/daemon.json
{
  "registry-mirrors": [
    "https://registry.docker-cn.com"
  ],
  "exec-opts": ["native.cgroupdriver=systemd"]
}
EOF
#重启docker
systemctl restart docker

标签:cn,安装,ce,systemctl,yum,docker,快速
From: https://www.cnblogs.com/guangdelw/p/16964760.html

相关文章

  • docker-compose的命令补全
    找文件docker-compost官方github地址https://github.com/docker/compose切换master分支点击复制在/etc/bash_completion.d/下新建docker-compose文件,保存退出后......
  • ubuntu安装docker
    sudoaptupdatesudoaptinstallapt-transport-httpsca-certificatescurlsoftware-properties-commoncurl-fsSLhttps://download.docker.com/linux/ubuntu/gpg......
  • Ubuntu命令安装默认支持的Qt5版本
    1.前置依赖sudoaptinstallbuild-essentialsudoaptinstallcmake2.只安装默认的Qt模块#安装默认SDK#Ubuntu18.04中默认安装版本是Qt5.9.5sudoaptinstall......
  • dockerfile 缩减镜像
    title:Dockerfile缩减镜像技巧categories:-dockersummary:Dockerfile缩减镜像技巧Dockerfile缩减镜像技巧构建上下文执行dockerbuild命令时,当前的工作......
  • Robotframework 本地安装部署
    一、RF简介:RF基于python语言开发的,可扩展,以关键字驱动模式的自动化测试框架。支持到python3.7关键字驱动与数据驱动的区别:关键字驱动--》关键字驱动表示把项目中的一些逻......
  • docker部署项目
    (文章目录)<hrstyle="border:solid;width:100px;height:1px;"color=#000000size=1">前言<fontcolor=#999AAA>为了提高服务器的利用率,且便于项目部署及发布,服务......
  • Centos7 kubeadm安装k8s
    安装环境准备关闭防火墙systemctlstopfirewalldsystemctldisablefirewalld关闭selinuxsed-i's/enforcing/disabled/'/etc/selinux/config关闭swapsed-ri......
  • 11g dg 快速搭建命令
    1、开启强制归档alterdatabaseforcelogging;2、开启归档SQL>altersystemsetdb_recovery_file_dest_size=5g;SQL>altersystemsetdb_recovery_file_dest='C:\ap......
  • Debian11.5 最小化安装后更改主机名、安装桌面、设置默认语言、时区、静态IP、局域网D
    最小化安装,指的是采用debian-11.5.0-amd64-netinst.iso382.0MiB2022-09-1020:40这个只有382M的镜像,仅安装了ssh服务的状态,只占了900多M磁盘空间。如果使用Live......
  • docker部署项目
    @目录前言一、下载安装docker:1.前提工作1.1查看linux版本1.2yum包更新到最新1.3安装工具包1.4设置yum源并更新yum包索引2.安装docker2.1安装docker-ce2.2启动docker2......