WordPress 정보
Docker search로 mysql이미지 확인
[docker@sprint1-docker-vm ~]$ docker search mysql
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
mysql MySQL is a widely used, open-source relation... 7859 [OK]
mariadb MariaDB is a community-developed fork of MyS... 2608 [OK]
mysql/mysql-server Optimized MySQL Server Docker images. Create... 592 [OK]
zabbix/zabbix-server-mysql Zabbix Server with MySQL database support 168 [OK]
hypriot/rpi-mysql RPi-compatible Docker Image with Mysql 109
zabbix/zabbix-web-nginx-mysql Zabbix frontend based on Nginx web-server wi... 91 [OK]
centurylink/mysql Image containing mysql. Optimized to be link... 60 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 49 [OK]
centos/mysql-57-centos7 MySQL 5.7 SQL database server 47
mysql/mysql-cluster Experimental MySQL Cluster Docker images. Cr... 41
tutum/mysql Base docker image to run a MySQL database se... 31
bitnami/mysql Bitnami MySQL Docker Image 25 [OK]
schickling/mysql-backup-s3 Backup MySQL to S3 (supports periodic backup... 25 [OK]
zabbix/zabbix-proxy-mysql Zabbix proxy with MySQL database support 20 [OK]
linuxserver/mysql A Mysql container, brought to you by LinuxSe... 20
centos/mysql-56-centos7 MySQL 5.6 SQL database server 13
circleci/mysql MySQL is a widely used, open-source relation... 10
mysql/mysql-router MySQL Router provides transparent routing be... 8
openshift/mysql-55-centos7 DEPRECATED: A Centos7 based MySQL v5.5 image... 6
dsteinkopf/backup-all-mysql backup all DBs in a mysql server 5 [OK]
jelastic/mysql An image of the MySQL database server mainta... 1
cloudposse/mysql Improved `mysql` service with support for `m... 0 [OK]
widdpim/mysql-client Dockerized MySQL Client (5.7) including Curl... 0 [OK]
ansibleplaybookbundle/mysql-apb An APB which deploys RHSCL MySQL 0 [OK]
cloudfoundry/cf-mysql-ci Image used in CI of cf-mysql-release 0
[docker@sprint1-docker-vm ~]$
Docker search로 wordpress이미지 확인
[docker@sprint1-docker-vm ~]$ docker search wordpress
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
wordpress The WordPress rich content management system... 2842 [OK]
bitnami/wordpress Bitnami Docker Image for WordPress 102 [OK]
appcontainers/wordpress Centos/Debian Based Customizable Wordpress C... 34 [OK]
etopian/alpine-php-wordpress Alpine WordPress Nginx PHP-FPM WP-CLI 20 [OK]
centurylink/wordpress Wordpress image with MySQL removed. 14 [OK]
raulr/nginx-wordpress Nginx front-end for the official wordpress:f... 12 [OK]
arm32v7/wordpress The WordPress rich content management system... 8
1and1internet/ubuntu-16-nginx-php-5.6-wordpress-4 ubuntu-16-nginx-php-5.6-wordpress-4 7 [OK]
dalareo/wordpress-ldap Wordpress images with LDAP support automatic... 6 [OK]
withinboredom/scalable-wordpress An easy to scale WordPress 5 [OK]
julianxhokaxhiu/docker-awesome-wordpress A Docker that combines all the most awesome ... 3 [OK]
wodby/wordpress-nginx Nginx for WordPress 3 [OK]
wodby/wordpress-php PHP for WordPress 3 [OK]
1and1internet/ubuntu-16-nginx-php-7.1-wordpress-4 ubuntu-16-nginx-php-7.1-wordpress-4 3 [OK]
gwee/wordpress-sendmail-docker wordpress with sendmail 2 [OK]
dsteinkopf/wordpress wordpress clone plus some php extensions 1 [OK]
owncloud/wordpress Wordpress image for ownCloud websites 1
arm64v8/wordpress The WordPress rich content management system... 1
1and1internet/ubuntu-16-apache-php-5.6-wordpress-4 ubuntu-16-apache-php-5.6-wordpress-4 1 [OK]
bakudankun/wordpress-ja WordPress Japanese Edition forked from offic... 1 [OK]
julianxhokaxhiu/docker-wordpress-ldaps Wordpress Docker image with LDAPS support 1 [OK]
erikzenker/wordpress wordpress docker image 0
itherz/wordpress Wordpress 0 [OK]
ansibleplaybookbundle/wordpress-ha-apb An APB which deploys Wordpress HA 0 [OK]
davask/d-wordpress Dockerfile for wordpress 0 [OK]
[docker@sprint1-docker-vm ~]$
MySql Container 실행 for 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 mysql:5.7
Unable to find image 'mysql:5.7' locally
5.7: Pulling from library/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:8c15b2612051244d0a2b6ceb6f9bf82ddc0e909555c1067c098e5f935e2751a7
Status: Downloaded newer image for mysql:5.7
5904e0153ef20fe20909f7732419c862251c9fbb4a2ff533c858c46d73039ba5
[docker@sprint1-docker-vm ~]$
[docker@sprint1-docker-vm ~]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5904e0153ef2 mysql:5.7 "docker-entrypoint.s..." 10 seconds ago Up 8 seconds 3306/tcp, 33060/tcp mysql
[docker@sprint1-docker-vm ~]$
WordPress Container 실행
[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 확인 하기