이미지 PULL

[docker@sprint1-docker-vm ~]$ docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
[docker@sprint1-docker-vm ~]$ docker images -a
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
[docker@sprint1-docker-vm ~]$
[docker@sprint1-docker-vm ~]$
[docker@sprint1-docker-vm ~]$ docker pull sooabia/mysql:5.7
5.7: Pulling from sooabia/mysql
6ae821421a7d: Pull complete
a9e976e3aa6d: Pull complete
e3735e44a020: Pull complete
bfd564e9483f: Pull complete
df705f26e488: Pull complete
0c5547f73d62: Pull complete
f437382cf8a1: Pull complete
4f22805bb6d6: Pull complete
394f0f652697: Pull complete
fb068b9b9d1f: Pull complete
fdfc96ad0937: Pull complete
Digest: sha256:888d433748dbccc8388a665134b1906f13f599753ef190546903181b7312027d
Status: Downloaded newer image for sooabia/mysql:5.7
[docker@sprint1-docker-vm ~]$ docker pull sooabia/wordpress:latest
latest: Pulling from sooabia/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:9a52222382ad1849fcc8767218926ce43d7d816b51176798932e648da84e64af
Status: Downloaded newer image for sooabia/wordpress:latest
[docker@sprint1-docker-vm ~]$
[docker@sprint1-docker-vm ~]$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
sooabia/wordpress   latest              523eaf9f0ced        4 days ago          422MB
sooabia/mysql       5.7                 e47e309f72c8        3 weeks ago         372MB


WordPress 실행하기

[docker@sprint1-docker-vm ~]$ docker run -d --name mysql -v mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=wordpress -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpress -e MYSQL_PASSWORD=wordpress sooabia/mysql:5.7
cc7b625ac6e240d72404807afc36fc2a0868d02984b5569f73d6f75cc14083b6
[docker@sprint1-docker-vm ~]$
[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 sooabia/wordpress:latest
a5770abf6d2dc5fbcfef43ae51dff5d8ee8c06b03ac8a1f3d7295fd13bf275b4
[docker@sprint1-docker-vm ~]$
[docker@sprint1-docker-vm ~]$ docker ps
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                 NAMES
a5770abf6d2d        sooabia/wordpress:latest   "docker-entrypoint.s..."   5 seconds ago       Up 3 seconds        0.0.0.0:80->80/tcp    wordpress
cc7b625ac6e2        sooabia/mysql:5.7          "docker-entrypoint.s..."   21 seconds ago      Up 20 seconds       3306/tcp, 33060/tcp   mysql
[docker@sprint1-docker-vm ~]$

WordPress 확인하기

  • No labels
Write a comment…