Ali cloud-based deployment showDoc ecs docker

Document official website: https://www.showdoc.cc/help?page_id=65610  (recommended to walk this)

 First, I ecs mirror is CentOS 7.6 64 Wei

1. First docker installed on the server and login server

2. Pull showdoc mirror (I have the latest version of direct access to the showDoc): docker pull xd2idwf5.mirror.aliyuncs.com/star7th/showdoc:latest

3. Rename: Docker Tag xd2idwf5 . Mirror . Aliyuncs . COM / star7th / showdoc : Latest star7th / showdoc : Latest

To see if pulled successfully docker images command:

4. Create a directory on your server:

The wording of the following will be created in the root directory:

   mkdir /showdoc_data

         mkdir /showdoc_data/html

        chmod -R 777 /showdoc_data

 

 

 

5. Create named: showdoc container, and set port mapping, directory mount:

docker run -d --name showdoc -p 4999:80 -v /showdoc_data/html:/var/www/html/  star7th/showdoc     

[Note here: the one on the write line, and RUN Docker  - - name showdoc  - 4999 : 80 - / showdoc_data / HTML : / var / WWW / HTML / rear include a space, write star7th / showdoc,  or will report:  ]

  

 

Guess you like

Origin www.cnblogs.com/wtx106/p/11462761.html