博客
关于我
谷粒商城day03-linux安装docker
阅读量:762 次
发布时间:2019-03-23

本文共 581 字,大约阅读时间需要 1 分钟。

为什么安装docker?

使用docker这样的容器技术,可以简化操作和加强系统安全。与传统方法相比,不需要手动下载压缩包或配置复杂环境。直接从镜像启动应用即可,无需繁琐的依赖管理。docker通过容器提供运行隔离,确保各个服务之间不互相影响,系统运行更加安全。

以下是安装docker的步骤:

  • 卸载旧版本docker
  • sudo yum remove docker \docker-client \docker-client-latest \docker-common \docker-latest \docker-latest-logrotate \docker-logrotate \docker-engine
    1. 安装依赖工具并配置仓库
    2. yum install -y yum-utils  sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
      1. 安装docker和相关组件
      2. sudo yum install docker-ce docker-ce-cli containerd.io
        1. 启动docker服务
        2. sudo systemctl start docker
          1. 设置开机自启动
          2. sudo systemctl enable docker

    转载地址:http://juezk.baihongyu.com/

    你可能感兴趣的文章
    Python:deepcopy(list) vs new_list = old_list[:]
    查看>>
    Python:Google API - 从消息中获取 mimeTypes
    查看>>
    Python:Google API - 从消息中获取 mimeTypes
    查看>>
    Python:subprocess.call,stdout to file,stderr to file,在屏幕上实时显示stderr
    查看>>
    Python:TypeError:无法连接“str“和“int“对象
    查看>>
    Python:XPath 在 ElementTree 中不可用
    查看>>
    Python:从 FTP 服务器下载文件
    查看>>
    python:从列表中创建元组列表
    查看>>
    Python:从嵌套列表中删除重复项
    查看>>
    Python:从间隔映射到值
    查看>>
    Python:使用 shell=False 的子进程调用不起作用
    查看>>
    Python:修改 PATH 环境变量的平台无关方式
    查看>>
    Python:假与 0
    查看>>
    Python:函数使用
    查看>>
    Python:函数进阶
    查看>>
    Python:在整数的二进制表示中查找最长的二进制间隙
    查看>>
    Python:如何从二进制转换为 base 64 并返回?
    查看>>
    Python:如何以非阻塞方式读取子进程的标准输出
    查看>>
    Python:如何使用 plotly 制作阴影区域或交替背景颜色?
    查看>>
    Python:如何根据日期时间获取值的计数
    查看>>