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

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.

主站蜘蛛池模板: 景洪市| 禄丰县| 新宾| 体育| 岳阳县| 鲁甸县| 昭苏县| 额尔古纳市| 信阳市| 天峨县| 九寨沟县| 靖远县| 象山县| 平果县| 于都县| 郧西县| 广德县| 开原市| 故城县| 陵水| 桃源县| 清河县| 香格里拉县| 梨树县| 青田县| 阿勒泰市| 自治县| 陈巴尔虎旗| 和硕县| 南漳县| 北京市| 永城市| 若羌县| 杨浦区| 香格里拉县| 汝州市| 齐齐哈尔市| 改则县| 天津市| 抚松县| 阜宁县|