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

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.

主站蜘蛛池模板: 武陟县| 彩票| 云浮市| 贵溪市| 红原县| 孟州市| 阳曲县| 苏州市| 大荔县| 南宫市| 芷江| 临泉县| 汕头市| 通榆县| 湘潭市| 镇平县| 柘城县| 苏尼特右旗| 永兴县| 九寨沟县| 宁陕县| 宕昌县| 南召县| 收藏| 虹口区| 西贡区| 许昌市| 崇信县| 汶上县| 奇台县| 托克逊县| 延寿县| 万源市| 渑池县| 滦南县| 阿巴嘎旗| 辽宁省| 淄博市| 湘潭市| 专栏| 类乌齐县|