Get Docker CE for CentOS

Posted 源码王

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Get Docker CE for CentOS相关的知识,希望对你有一定的参考价值。

//https://docs.docker.com/install/linux/docker-ce/centos/

To get started with Docker CE on CentOS, make sure you meet the prerequisites, then install Docker.

// meet  vt. 满足;遇见;对付      prerequisite  n.先决条件

Prerequisites

OS requirements

To install Docker CE, you need a maintained version of CentOS 7. Archived versions aren’t supported or tested.

The centos-extras repository must be enabled. This repository is enabled by default, but if you have disabled it, you need to re-enable it.

The overlay2 storage driver is recommended.

Uninstall old versions

Older versions of Docker were called docker or docker-engine. If these are installed, uninstall them, along with associated dependencies.

$ sudo yum remove docker                   docker-client                   docker-client-latest                   docker-common                   docker-latest                   docker-latest-logrotate                   docker-logrotate                   docker-selinux                   docker-engine-selinux                   docker-engine

It’s OK if yum reports that none of these packages are installed.  //如果yum 报告这些包都没有安装,那也没关系

The contents of /var/lib/docker/, including images, containers, volumes, and networks, are preserved. The Docker CE package is now called docker-ce.

   //preserved  [pr?‘z??vd] adj. 保藏的;

 

Install Docker CE

 

You can install Docker CE in different ways, depending on your needs:

 

  • Most users set up Docker’s repositories and install from them, for ease of installation and upgrade tasks. This is the recommended approach.

  • Some users download the RPM package and install it manually and manage upgrades completely manually. This is useful in situations such as installing Docker on air-gapped systems with no access to the internet.  //气隙系统(Air-gapped)是一种将电脑进行完全隔离(不与互联网以及任何其他联网设备连接)以保护数据安全的系统

  • In testing and development environments, some users choose to use automated convenience scripts to install Docker.

 

以上是关于Get Docker CE for CentOS的主要内容,如果未能解决你的问题,请参考以下文章

Get Docker for CentOS and Installing Docker

centos7.2 64位 安装最新版 docker-ce-18.05.0

centos7安装docker-ce

CentOS7 Docker-ce 安装(阿里源)

docker-ce如何在centos上安装

Centos7安装Docker CE