Home>Article>Operation and Maintenance> How to deploy a server with docker?

How to deploy a server with docker?

coldplay.xixi
coldplay.xixi Original
2020-06-19 10:03:42 4124browse

How to deploy a server with docker?

How docker deploy the server?

How to deploy a server with docker:

This article takes a server deployed with docker on Alibaba Cloud as an example.

(1) Own an Alibaba Cloud student machine (poor)

(2) The recommended system here is CentOS 7.3

(3) First log in to the root account, this Normal people should be able to do this (sudo su root)

(4) Next, enter the command yum install docker

(5) You can try docker -v to determine whether you have finished issuing the basic docker command

(6) Because I am a back-end person, I prefer to use IDEA to remotely docker. Here we need to involve the issue of opening ports. The default port of docker on Alibaba Cloud is 2375. .

(7) Because Alibaba Cloud’s default firewall does not open 2375, you need to turn off the firewall while opening the port. Because student computers are not very afraid of being exploded, so I leave it fully open by default. .

How to deploy a server with docker?

(8) Next is the IDEA part. Generally, IDEA will integrate docker. The first is to configure docker

How to deploy a server with docker?

Next try to see if the connection is successful and you should be able to see the following screen

How to deploy a server with docker?

In this way, the docker deployment is initially completed.

Recommended tutorial: "docker tutorial"

The above is the detailed content of How to deploy a server with docker?. 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