在CentOS7下安装Docker
前提
要安装Docker Engine,你需要一个CentOS 7或8的维护版本。不支持或测试存档版本。
必须启用centos-extras存储库。这个存储库在默认情况下是启用的,但是如果您禁用了它,您需要重新启用它。
推荐使用overlay2存储驱动。
安装方式-Installation methods
You can install Docker Engine 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