Quickly install Docker application container software on Ubuntu 16.04 system

888u

Last update at :2024-07-08,Edit by888u

Lao Zuo was going to configure a software application on the server, but when he saw the actual tutorial, he needed to install a Docker application container on the server. Because software deployment is based on Docker, it needs to be installed on the server first. The installation of Docker containers is actually simple. We have done frequent installations in the past, but it seems that there is no record in the blog. This time I will record the method. This knowledge point still needs to be learned, because the installation of many scripts and software needs to be based on container.

In this article, Lao Zuo (LAOZUO.ORG) uses the Ubuntu 16.04 system that we are good at and easy to use. Since CentOS7, I don’t feel that I particularly like it anymore. Debian and Ubuntu systems are still relatively simple.

First, uninstall the old version

apt-get remove docker docker-engine docker-ce docker.io -y

Some systems have their own lower version of docker. Here we will uninstall it directly.

Second, update system software

apt-get update -y

If we have an error when updating, we should change the system source and then update.

Third, install dependency packages and Docker keys

apt-get install \\\\apt-transport-https \\\\ca-certificates \\\\curl \\\\software-properties-common

Here we first install the dependency packages.

Here we add the official key.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –

After adding it, we will add the warehouse.

add-apt-repository \\\\\\"deb [arch=amd64] https://download.docker.com/linux/ubuntu \\\\$(lsb_release -cs) \\\\stable\ \"

Fourth, install Docker CE

We still need to update the system first.

apt update -y

Then we can install the CE version.

apt-get install -y docker-ce

After the installation is complete, we can check whether it is currently installed and version through "docker -v\\".

Recommended site search: same IP site query, virtual host recommendation of the best US server, server space rental, registration center, Hong Kong space, Hong Kong vps host, US host rental, mainland China virtual host, registered domain name, < /p>

Quickly install Docker application container software on Ubuntu 16.04 system

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码