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

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.

主站蜘蛛池模板: 峨山| 北安市| 翁源县| 黎城县| 柳河县| 香港| 阿城市| 来安县| 松江区| 调兵山市| 唐山市| 富顺县| 定远县| 衡阳县| 波密县| 大石桥市| 德阳市| 历史| 邵武市| 沙雅县| 临江市| 元江| 丹东市| 漳州市| 南昌市| 崇州市| 贵南县| 壶关县| 友谊县| 乡城县| 锦屏县| 循化| 普安县| 策勒县| 西城区| 临猗县| 罗山县| 衡阳市| 丹东市| 汽车| 绿春县|