二丫讲梵 二丫讲梵
首页
  • 最佳实践
  • 迎刃而解
  • Nginx
  • Php
  • Zabbix
  • Prometheus
  • Grafana
  • CentOS
  • Systemd
  • Docker
  • Rnacher
  • Ansible
  • Ldap
  • Gitlab
  • GitHub
  • Etcd
  • Consul
  • RabbitMQ
  • Kafka
  • MySql
  • MongoDB
  • OpenVPN
  • KVM
  • VMware
  • Other
  • ELK
  • K8S
  • Nexus
  • Jenkins
  • 随写编年
  • 家人物语
  • 追忆青春
  • 父亲的朋友圈
  • 电影音乐
  • 效率工具
  • 博客相关
  • Vue
  • Shell
  • Golang学习笔记
  • Golang编程技巧
  • 学习周刊
  • Obsidian插件周刊
关于
  • 分类
  • 标签
  • 归档
    • 友链
    • 导航
    • 打赏
    • json2go (opens new window)
    • 微信MD编辑 (opens new window)
    • 国内镜像 (opens new window)
    • 出口IP查询 (opens new window)
开往 (opens new window)
GitHub (opens new window)

二丫讲梵

行者常至,为者常成
首页
  • 最佳实践
  • 迎刃而解
  • Nginx
  • Php
  • Zabbix
  • Prometheus
  • Grafana
  • CentOS
  • Systemd
  • Docker
  • Rnacher
  • Ansible
  • Ldap
  • Gitlab
  • GitHub
  • Etcd
  • Consul
  • RabbitMQ
  • Kafka
  • MySql
  • MongoDB
  • OpenVPN
  • KVM
  • VMware
  • Other
  • ELK
  • K8S
  • Nexus
  • Jenkins
  • 随写编年
  • 家人物语
  • 追忆青春
  • 父亲的朋友圈
  • 电影音乐
  • 效率工具
  • 博客相关
  • Vue
  • Shell
  • Golang学习笔记
  • Golang编程技巧
  • 学习周刊
  • Obsidian插件周刊
关于
  • 分类
  • 标签
  • 归档
    • 友链
    • 导航
    • 打赏
    • json2go (opens new window)
    • 微信MD编辑 (opens new window)
    • 国内镜像 (opens new window)
    • 出口IP查询 (opens new window)
开往 (opens new window)
GitHub (opens new window)
  • 最佳实践

  • 迎刃而解

  • Nginx

  • Php

  • Zabbix

  • Prometheus

  • Grafana

  • CentOS

  • Supervisord

  • Systemd

  • Docker

    • docker的几种安装方式
      • 1,安装默认的1.13版本。
      • 2,通过rpm安装其他版本。
        • 1,下载包。
        • 2,安装包。
        • 3,启动docker。
        • 4,验证安装。
      • 3,通过二进制安装其他版本。
        • 1,下载包。
        • 2,安装。
        • 3,启动。
        • 4,验证安装。
    • docker配置加速器的几种方案
    • docker搭建官方版私有仓库(了解)
    • Docker笔记之企业级仓库harbor搭建
    • 认识了解Dockerfile
    • 利用Dockerfile创建一些基础镜像
    • Docker笔记之与镜像相关的命令整理
    • 从docker容器时间问题探究到Namespace问题
    • Docker笔记之制作kafka镜像
    • Docker笔记之制作lnmp镜像
    • Docker笔记之使用apline镜像
    • Docker笔记之修改默认数据存储目录
    • Docker笔记之修改默认网段
    • docker磁盘或者镜像清理相关内容
    • centos镜像添加chrome浏览器以及中文字体
    • 利用buildx构建支持多CPU架构平台的docker镜像
  • Docker-Compose

  • Rancher

  • Ansible

  • OpenLdap

  • GitLab

  • GitHub

  • Etcd

  • Consul

  • RabbitMQ

  • Kafka

  • Mysql

  • MongoDB

  • OpenVPN

  • Kvm

  • VMware

  • 配置文件详解

  • Other

  • 运维观止
  • Docker
二丫讲梵
2018-10-16
目录

docker的几种安装方式原创

# 1,安装默认的1.13版本。

由于docker是外国产品,很多时候安装使用中会受困于网络,因此安装起来也会显得有一些头大,当然也可以直接在CentOS 7上yum -y install docker,这样安装出来的版本就是1.13。

image

# 2,通过rpm安装其他版本。

可以下载.rpm适用于您的发行版的 文件并手动安装。每次要升级Docker时都需要下载新文件。

# 1,下载包。

转到 https://download.docker.com/linux/centos/7/x86_64/stable/Packages/ 并下载.rpm要安装的Docker版本的文件。

# 2,安装包。

安装Docker CE,将下面的路径更改为您下载Docker软件包的路径。

yum install /path/to/package.rpm
1

# 3,启动docker。

systemctl start docker
1

# 4,验证安装。

docker通过运行hello-world 映像验证是否已正确安装。

docker run hello-world
1

# 3,通过二进制安装其他版本。

# 1,下载包。

转到https://download.docker.com/linux/static/stable/x86_64/ 下载对应的版本。

# 2,安装。

将对应的包导入到服务器当中。

tar xf docker-18.06.1-ce.tgz
cp docker/* /usr/bin/
1
2

# 3,启动。

docker &
1

# 4,验证安装。

docker通过运行hello-world 映像验证是否已正确安装。

docker run hello-world
1

以上两种情况,详细的参考官网。

#docker
上次更新: 2022/05/09, 23:42:59

← 使用systemctl管理tomcat多实例 docker配置加速器的几种方案→

最近更新
01
置顶文章汇总 原创
05-23
02
Jenkins基于Share Library共享库的最佳实践探索 原创
05-22
03
Debian系统中执行shell报错unexpected operator 原创
05-21
更多文章>
Theme by Vdoing | Copyright © 2017-2022 | 点击查看十年之约 | 浙ICP备18057030号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式