Docker install wordpress

[ubuntu_14_0405]
read "do-it-yourself docker", Chapter 1.1.6 encountered a problem.
1, install
dockercurl-sSL https://get.docker.com on your own machine | sh

2, pull the WordPress image from DockerHub
docker run-d-p 80:80-- name wordpress wordpress
3, and get the mysql password echo $(docker logs wordpress | grep password)

it doesn"t feel right at this step. Figure 1 described in the book, and log figure 2 returned by myself

enter echo $(docker logs wordpress | grep password) does not get the mysql password, and the result is shown in figure 2. Why? Thank you

Mar.16,2021

'wordpress requires a mysql database. Before you begin, make sure that a container for the mysql database is running on the server.' Refer to https://zhuanlan.zhihu.com/p/.

Menu