Docker building wordpress application in Linux environment

Source: Internet
Author: User
Tags install wordpress docker run

  • Install WordPress
    Here is the latest version of WordPress

      [email protected]:~$ sudo docker pull WordPress: Latestlatest:pulling from Library/wordpressf2aa67a397c4:pull complete C533bdb78a46:pull complete 65a7293804ac:pull Co Mplete 35a9c1f94aea:pull Complete 651774c607cc:pull complete 7c01fbe5ed3d:pull complete 9ff29ed84bfc:pull complete 647  Feb0f6355:pull Complete 0b9d1c540863:pull Complete 3416ab5471ed:pull complete 246c5fc29b1a:pull complete 547F032430EC: Pull complete 5e139e5ea13c:pull Complete a94f7c8b762e:pull complete 34e9c8ec80d7:pull complete 1e3ee2260fe8:pull Comp Lete 04287c0c64aa:pull Complete Ef94d58d88a0:pull complete 5368638c2501:pull complete 5ef154e9a628:pull complete diges t:sha256:bd2ee79c6b461aaef56c7dc589d5a8ec9059fa2d01005cbe097e47d943973ca2status:downloaded newer image for Wordpress:latest  
  • Install MySQL
    The mysql5.7 version is installed here, and the latest version can be installed.

    [email protected]:~$ sudo docker pull mysql:5.75.7: Pulling from library/mysqlf2aa67a397c4: Already exists 1accf44cb7e0: Already exists 2d830ea9fa68: Already exists 740584693b89: Already exists 4d620357ec48: Already exists ac3b7158d73d: Already exists a48d784ee503: Already exists bf1194add2f3: Pull complete 0e5c74178a02: Pull complete e9201d309436: Pull complete bf1ac4524e8e: Pull complete Digest: sha256:f030e84582d939d313fe2ef469b5c65ffd0f7dff3b4b98e6ec9ae2dccd83dcdfStatus: Downloaded newer image for mysql:5.7a84b2b2199a11a4fdfbde13b71f5174c07606ba99d455d4bcbd4b6e7c4661d16
  • Start MySQL

[email protected]:~$ sudo docker run --name mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7
    • Configure WordPress
      The port that points to 8080 here

      [email protected]:~$ sudo docker run --name wordpress --link mysql:mysql -p 8080:80 -d wordpress04aad536623d230af9ee8a1a6c6493171a3b3f27c15a200ddd6db16f9f9b774a
    • Start worpress
      • Enter xx.xx.xx.xx:8080 (here is the address of your own server) in the Address bar to open the Wordpress-admin settings page

      • After the configuration is complete, login to WordPress

      • After you set up your site, click Publish

Docker building wordpress application in Linux environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.