官术网_书友最值得收藏!

Installing Docker CE by running convenience scripts

The third way to install Docker is to use the convenience scripts provided by Docker. The scripts allow you to install either the latest edge version or the latest test version of Docker. It is not recommended that either of these is used in a production environment, but they do serve a purpose for testing and developing the latest Docker versions. The scripts are somewhat limited in that they do not allow you to customize any options during the install. The same scripts can be used across a variety of Linux distributions as they determine the base distro you are running and then do the install based on that determination. The process is simple.

Use curl to pull down the desired script, and then use sudo to run the script.

The commands to run the latest edge version are as follows:

# download and run the install script
curl -fsSL get.docker.com -o get-docker.sh

sudo sh get-docker.sh

Executing the script will result in output that looks like the following:

The docker group has been created for you by the script, but since CentOS is RPM centric, you still need to start the Docker service yourself:

# start docker
sudo systemctl start docker
If this were a Debian-based system, the Docker service would have been started automatically by the script.

Now that we have examined the three ways to install Docker on your CentOS workstation, it is a good time to discuss a few additional steps that are recommended in your post-installation setup.

主站蜘蛛池模板: 桦南县| 新平| 瑞安市| 诏安县| 玉龙| 江陵县| 河间市| 比如县| 宁化县| 夏河县| 铁岭县| 昌乐县| 峨眉山市| 环江| 高碑店市| 平遥县| 开原市| 岫岩| 三江| 潮州市| 平舆县| 澄城县| 墨玉县| 湄潭县| 桂东县| 彭阳县| 老河口市| 奉新县| 丰城市| 酒泉市| 通城县| 朔州市| 双峰县| 甘谷县| 开平市| 微博| 石渠县| 信丰县| 防城港市| 西乌珠穆沁旗| 沐川县|