MySQL application deployment steps in Docker

It is very troublesome to install mysql and redis under the linux system, but after the emergence of docker, the application installation will be very simple.

1. MySQL deployment

insert image description here
insert image description here

2. Steps to deploy mysql in docker

insert image description here
insert image description here
insert image description here

Create a mysql container
insert image description here
insert image description here
insert image description here
so that mysql is deployed.

External machine connects to mysql deployed in docker
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44860226/article/details/132286244