Docker builds a graphical interface portainer1.24.2, quickly builds a Worpress 5.7.2 site

Summary

Porttainer introduction

Portainer is a visual graphical management tool for container images. With Portainer, you can easily build, manage and maintain a Docker environment.
Official website: https://documentation.portainer.io/

Install portainer

Create command

docker run -d -p 9000:9000 --restart=always \
-v /var/run/docker.sock:/var/run/docker.sock --name portainer docker.io/portainer/portainer

To put it simply, the official website also has a ceversion, a simplified version, which can be connected to kubernetes, the figure below is version 2.5.1

Insert picture description here

Build wordpress

Enter the browser and http://ip:9000
set the password of the admin user name.

Insert picture description here


Directly choose to connect to the local. The

Insert picture description here


login is successful.

Insert picture description here


Click local and

Insert picture description here


select the [App Templates] function template to find the wordpress to

Insert picture description here


fill in the template. Here you will find that there is no option to fill in the database ip. This is because the template will automatically create a MySQL5. If the database of 7 is

Insert picture description here


created successfully, the word "success" will be returned. Then click [Containers] to view, the template will add two new containers, MySQL5.7 mirror database container and the latest version of wordpress mirror container

Insert picture description here

Configure wordpress

Browser access http://ip:49157

Insert picture description here


Fill in the site information. At

Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


Insert picture description here


this time, the first website has been created.
Browser accesshttp://ip:49157

Insert picture description here