The first thing that you'll do is configure MySQL, which is the persistent store for your blog. Remember, you are only creating a
docker container run command to launch this. You do not need to create a Dockerfile.
Your run command should provide the following configuration:
- name: db
- image: mysql:5.7
- volumes: db-data:/var/lib/mysql
- network: wordpress-net
- environment variables:
Note that you will need to create the network and volume before you execute your
docker container run command.
Once you run the database, perform
docker container logs db to verify it is up.