Docker installs wordpress

  docker, question

【 ubuntu_14_0405】
I met a problem in chapter 1.1.6 when I read “Write docker by Yourself”.
1. Install it on your own machine
dockercurl -sSLhttps://get.docker.com| sh

2. Pull WordPress image from DockerHub
docker run -d -p 80:80 –name wordpress wordpress
3. get mysql password echo $ (dockerlogs wordpress | greppassword)

It feels wrong at this step. Figure 1 described in the book and Figure 2 of the log returned by myself
图片描述

图片描述

Enter echo $ (Docker Logs WordPress | Greppassword) and did not get mysql password. The result is shown in Figure 2. Why? Thank you

According to the official statement, it is suggested that you build it according to the principle of one container running one process.