How to install docker on remote server

angryTom
Release: 2020-03-31 16:19:22
Original
3668 people have browsed it

How to install docker on remote server

How to install docker on a remote server

1. First, you need to log in to the remote server via ssh

Windows There are many SSH tools available. Such as Putty. The command to connect to the server using SSH is as follows:

ssh 用户名@IP地址 -p 端口号
Copy after login

If the connection is successful, you will be prompted to enter the password of the remote server. After all is successful, SSH will display the prompt of the remote server, which means the connection is successful.

Recommended learning: CentOS usage tutorial

2. Then uninstall the remaining docker from the system first

# yum remove docker
Copy after login

3 , install the Docker version library

# yum install -y yum-utils device-mapper-persistent-data lvm2
Copy after login
# yum-config-manager  --add-repo  https://download.docker.com/linux/centos/docker-ce.repo
Copy after login

4, install docker-ce

# yum install docker-ce
Copy after login

5, verify the installation status

# docker -v
Copy after login

The presence of the version number indicates that the docker installation is successful.

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of How to install docker on remote server. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template