惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Proofpoint News Feed
量子位
K
Kaspersky official blog
S
SegmentFault 最新的问题
博客园 - 叶小钗
博客园 - 司徒正美
酷 壳 – CoolShell
酷 壳 – CoolShell
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
F
Fortinet All Blogs
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cisco Blogs
T
Tenable Blog
U
Unit 42
S
Schneier on Security
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
C
Cybersecurity and Infrastructure Security Agency CISA
V
Visual Studio Blog
The Hacker News
The Hacker News
Jina AI
Jina AI
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
Intezer
Cyberwarzone
Cyberwarzone
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
T
The Exploit Database - CXSecurity.com
V
V2EX
Help Net Security
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
PCI Perspectives
PCI Perspectives
腾讯CDC
Webroot Blog
Webroot Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News | PayPal Newsroom
Recorded Future
Recorded Future
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog

博客园 - kingkoo

ReaHat7.6/7.7 最小化安装更新yum源 java程序员经常使用的Intellij Idea插件 NDK版本 下载地址 在Intellij IDEA下用X-debug调试PHP DMSFrame 之查询表达式用法(一) Wise 打包细节 将Centos的yum源更换为国内的阿里云(163)源 Centos下安装 .net Core运行程序 使用 Docker 一步搞定 ZooKeeper 集群的搭建 maven中scope标签以及exclusions 记录 Centos MySQL数据库迁移详细步骤 Maven 本地仓库明明有jar包,pom文件还是报错解决办法 位与,位或,位异或运算符的理解 编程中位运算用法总结 C++ CompletionPort(完成端口)示例 消息中间件Notify和MetaQ-阿里中间件 DMSFrame 之SqlCacheDependency(二) DMSFrame 之SqlCacheDependency(一) DMSFrame 之简单用法(二)
docker 安装与学习
kingkoo · 2018-04-05 · via 博客园 - kingkoo

本文在CentsOS下安装Docker

  1.安装前准备工作

    系统要求:

      在CentOS下需要64位的CentsOS 7

      OS requirements

      To install Docker, you need the 64-bit version of CentOS 7.

     需要删除非官方的Docker Package

      由于 Red Hat 操作系统包含了一个旧版本的 Dcoker,使用docker代替 docker-engine,如果想使用官方版本需要执行删除语句

yum -y remove docker docker-common container-selinux

  需要使用如下语句删除与官方包 docker-engine 可能有冲突的 docker-selinux

yum -y remove docker-selinux

  1.使用官方推荐的方式,更容易进行安装和升级操作

  2.使用如下的命令设置稳定版的 repository

 yum-config-manager \
          --add-repo \
          https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo

  3.不要使用不稳定的版本仓库在生产环境或非测试环境中。如果同时拥有稳定的仓库和非稳定的仓库,在使用 yum install或者yum update 在没有指定特定版本的前提下进行安装或升级操作,需要注意大多数情况下获取的是最高的版本,并且极有可能是不稳定的版本。

yum-config-manager --disable docker-testing

  4.更新yum

  5.安装最新版本或指定版本的docker

vim /etc/yum.repos.d/docker.repo
## 在vim编辑器中输入以下内容后保存
 
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg

  6.安装最新的docker

yum -y install docker-engine

  7.特定的可以用下面命令查看

yum list docker-engine.x86_64  --showduplicates |sort -r
8.安装特定版本的 dcoker
yum -y install docker-engine-<VERSION_STRING>
#如: 
#     yum -y install docker-engine-1.13.1-1.el7.centos 

  启动 Docker

  检查Docker

  删除docker

yum -y remove docker-engine

  删除 docker 相关目录文件(安装docker 后在 /var/lib/docker 目录下包含 images,containers, volumes和自定义的配置文件,这些文件必须手动删除。)