Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[docker@sprint1-docker-vm ~]$ docker run -d --name wordpress -v wordpress:/var/www/html --link mysql:mysql -e WORDPRESS_DB_HOST=mysql:3306 -e WORDPRESS_DB_PASSWORD=wordpress -p 80:80 wordpress:latest
Unable to find image 'wordpress:latest' locally
latest: Pulling from library/wordpress
6ae821421a7d: Already exists
08f3d19635b0: Pull complete
dc8a54b8000b: Pull complete
b2c1d103db99: Pull complete
edfa752aa38a: Pull complete
583d37cbf2f0: Pull complete
c7846a240c1d: Pull complete
d8f9f0fd02fe: Pull complete
01d43e56770d: Pull complete
d7028d09ed0d: Pull complete
e7ada57130df: Pull complete
f8e18fc0e759: Pull complete
84b31f19dee2: Pull complete
5c0a2578817b: Pull complete
2fc1807539b8: Pull complete
62fcf2f6ca7b: Pull complete
64fda3ba2679: Pull complete
7500be78bfbe: Pull complete
Digest: sha256:37f9b9ba391302990b349daefe9fbf4691f79d4aa87e1af5f3617a3750e9678c
Status: Downloaded newer image for wordpress:latest
d98ae9cd7f0fac2278dca59c03b82e673a2ee20e7da081ad2fed0e3a15335b69
[docker@sprint1-docker-vm ~]$
[docker@sprint1-docker-vm ~]$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                 NAMES
d98ae9cd7f0f        wordpress:latest    "docker-entrypoint.s..."   39 seconds ago      Up 37 seconds       0.0.0.0:80->80/tcp    wordpress
5904e0153ef2        mysql:5.7           "docker-entrypoint.s..."   3 minutes ago       Up 3 minutes        3306/tcp, 33060/tcp   mysql
[docker@sprint1-docker-vm ~]$

WordPress 확인 하기

Image Added