Home  >  Article  >  Operation and Maintenance  >  How to install docker on remote server

How to install docker on remote server

angryTom
angryTomOriginal
2020-03-31 16:19:223661browse

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 端口号

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

3 , install the Docker version library

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

4, install docker-ce

# yum install docker-ce

5, verify the installation status

# docker -v

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!

Statement:
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