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

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.

主站蜘蛛池模板: 乐业县| 额敏县| 太康县| 峨边| 万山特区| 独山县| 淮安市| 奈曼旗| 绥芬河市| 清河县| 乐都县| 琼海市| 晋江市| 锦州市| 康定县| 和田县| 黄冈市| 北川| 澎湖县| 肇州县| 三台县| 阳曲县| 永春县| 绥滨县| 岳阳市| 沙洋县| 米林县| 乌拉特前旗| 津市市| 青岛市| 天津市| 安泽县| 康保县| 木兰县| 客服| 图木舒克市| 疏勒县| 奉新县| 家居| 师宗县| 兴化市|