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

Installing Docker CE manually using a downloaded RPM

Another way to install Docker CE is to use a downloaded RPM. This method involves downloading the Docker CE RPM for the version you wish to install. You need to browse to the Docker CE Stable RPM downloads site. The URL for this is https://download.docker.com/linux/centos/7/x86_64/stable/Packages:

Click on the version of Docker CE you want to download, and when prompted, tell your browser to save the file. Next, issue the yum install command, providing the path and filename for the downloaded RPM file. Your command should look something like this:

# install the docker rpm
sudo yum install ~/Downloads/docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm

You will need to start the Docker daemon. You'll use the preceding command in the repo section:

# start docker
sudo systemctl start docker

And, as we learned before, you can validate the functionality of your installation with the following commands:

# validate the install and functionality
docker --version

sudo docker run hello-world

While this method might seem simpler and easier to execute, it is less desirable because it is more of a manual process, especially when it comes time to update your version of Docker CE. You have to again browse to the downloads page, find the later version, download it, then do the yum install. Using the Docker Repository method described earlier, upgrades are as simple as issuing a yum upgrade command. Let's now take a look at one more method of installing Docker CE on your CentOS workstation.

主站蜘蛛池模板: 安阳市| 大理市| 顺平县| 阜康市| 资源县| 鄂托克旗| 蓬安县| 丹寨县| 南开区| 铜山县| 平果县| 获嘉县| 茶陵县| 繁昌县| 东源县| 韶关市| 张家港市| 余姚市| 岐山县| 孝感市| 武胜县| 望奎县| 房山区| 乡城县| 伊春市| 综艺| 墨江| 孟津县| 花莲市| 西昌市| 溧阳市| 谢通门县| 邵阳县| 青龙| 宜阳县| 土默特右旗| 赞皇县| 美姑县| 娄烦县| 安顺市| 侯马市|