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

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.

主站蜘蛛池模板: 昭苏县| 周宁县| 邵阳市| 山东省| 宜兰县| 惠东县| 巧家县| 定兴县| 台山市| 湖南省| 镇雄县| 清河县| 宁安市| 嘉义市| 营山县| 康乐县| 陕西省| 津市市| 朝阳县| 长顺县| 抚远县| 衡山县| 仁寿县| 邢台县| 龙海市| 满洲里市| 达尔| 内黄县| 金昌市| 扶风县| 镇巴县| 本溪| 卢湾区| 大安市| 兴安县| 喀什市| 扎鲁特旗| 扎鲁特旗| 扎鲁特旗| 杭锦后旗| 九台市|