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

Installing Docker CE by running convenience scripts

Another method of installing 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, however, 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 in 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.

Use the following command to install curl:

# install curl
sudo apt-get install curl

Now get the script and run the docker script to install:

# download and run the docker 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. The Docker service has been started, and the workstation has been configured to run Docker on boot. So, once again, you are ready to start using Docker.

We have examined the three ways to install Docker on your Ubuntu workstation, so now is a good time to discuss an additional step that is recommended for your post-installation setup.

主站蜘蛛池模板: 聊城市| 清涧县| 奉新县| 灵山县| 肥城市| 泸水县| 长子县| 通海县| 南靖县| 宿州市| 毕节市| 诏安县| 蒙城县| 镇巴县| 沈阳市| 辽中县| 保定市| 永康市| 开封市| 平舆县| 开江县| 岳池县| 枝江市| 盐山县| 玉屏| 青州市| 石城县| 岱山县| 延川县| 平果县| 呼玛县| 西乌珠穆沁旗| 丰都县| 登封市| 铁岭市| 习水县| 沙坪坝区| 潍坊市| 湖南省| 涡阳县| 永和县|