{"id":2474,"date":"2023-01-14T07:00:15","date_gmt":"2023-01-14T05:00:15","guid":{"rendered":"https:\/\/ways4.eu\/?p=2474"},"modified":"2023-01-13T21:30:13","modified_gmt":"2023-01-13T19:30:13","slug":"create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes","status":"publish","type":"post","link":"https:\/\/ways4.eu\/zh\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/","title":{"rendered":"\u5728\u51e0\u5206\u949f\u5185\u4f7f\u7528 docker \u521b\u5efa\u548c\u90e8\u7f72 wordpress \u6682\u5b58\u73af\u5883"},"content":{"rendered":"<p><span><span class=\"\">\u60a8\u662f\u5426\u6b63\u5728\u4f7f\u7528<\/span><\/span><a href=\"https:\/\/wordpress.org\"><span><span class=\"\">WordPress<\/span><\/span><\/a><span><span class=\"\">\u5e76\u60f3\u5728\u5411\u516c\u4f17\u53d1\u5e03\u66f4\u65b0\u4e4b\u524d\u6d4b\u8bd5\u66f4\u65b0\uff1f<\/span>\u60f3\u907f\u514d\u5f04\u4e71\u60a8\u7684\u751f\u6d3b\u73af\u5883\u5417\uff1f<\/span><a href=\"https:\/\/www.docker.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span>Docker<\/span><\/a><span>\u53ef\u4ee5\u63d0\u4f9b\u5e2e\u52a9\uff01\u672c\u6587\u5c06\u5411\u60a8\u5c55\u793a\u5982\u4f55\u4f7f\u7528 docker \u521b\u5efa\u6682\u5b58\u73af\u5883\u5e76\u90e8\u7f72\u60a8\u7684\u66f4\u6539\u3002<\/span><br \/>\n<!--more--><\/p>\n<h2><span>\u8bbe\u7f6edocker\u73af\u5883<\/span><\/h2>\n<p><span>\u8981\u5f00\u59cb\u4f7f\u7528 docker\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\u3002\u4e3a\u6b64\uff0c\u60a8\u9700\u8981\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5 docker \u547d\u4ee4\u884c\u5de5\u5177\u3002\u5b89\u88c5 docker \u547d\u4ee4\u884c\u5de5\u5177\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u5904\u7406\u5bb9\u5668\u3002\u5bb9\u5668\u662f\u5728\u4e3b\u673a\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u4e0a\u8fd0\u884c\u7684\u865a\u62df\u73af\u5883\u3002\u5bb9\u5668\u5141\u8bb8\u60a8\u5c06\u5e94\u7528\u7a0b\u5e8f\u5f7c\u6b64\u9694\u79bb\u5e76\u4e0e\u4e3b\u673a\u7cfb\u7edf\u9694\u79bb\u3002\u8fd9\u4f7f\u5f97\u5728\u4e0d\u5f71\u54cd\u60a8\u7684\u5b9e\u9645\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u6d4b\u8bd5\u66f4\u6539\u53d8\u5f97\u5bb9\u6613\u3002<\/span><\/p>\n<p><span>\u8981\u521b\u5efa\u65b0\u7684 docker \u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 docker create \u547d\u4ee4\u3002\u4ee5\u4e0b\u793a\u4f8b\u663e\u793a\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201ctest\u201d\u7684\u65b0\u73af\u5883\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker create --name=test -p 80:80 -v \/path\/to\/my\/files:\/usr\/src\/test<\/code><\/pre>\n<p><span>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u2013name \u6807\u5fd7\u8bbe\u7f6e\u73af\u5883\u7684\u540d\u79f0\u3002-p \u6807\u5fd7\u8bbe\u7f6e\u73af\u5883\u5c06\u4f7f\u7528\u7684\u7aef\u53e3\u3002-v \u6807\u5fd7\u6307\u5b9a\u73af\u5883\u5c06\u5b58\u50a8\u5176\u6587\u4ef6\u7684\u76ee\u5f55\u7684\u8def\u5f84\u3002\u5176\u4f59\u6807\u5fd7\u662f\u53ef\u9009\u7684\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/span><\/p>\n<p><span>\u521b\u5efa\u73af\u5883\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 docker run \u547d\u4ee4\u542f\u52a8\u5b83\u3002\u4ee5\u4e0b\u793a\u4f8b\u542f\u52a8\u5728\u4e0a\u4e00\u4e2a\u793a\u4f8b\u4e2d\u521b\u5efa\u7684\u540d\u4e3a\u201ctest\u201d\u7684\u73af\u5883\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker run --name=test -p 80:80 -v \/path\/to\/my\/files:\/usr\/src\/test<\/code><\/pre>\n<h2><span>\u5b89\u88c5wordpress<\/span><\/h2>\n<p><span>\u5982\u679c\u4f60\u60f3\u5728\u5df2\u7ecf\u5b89\u88c5\u4e86 web \u670d\u52a1\u5668\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5<\/span><a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span>wordpress \uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 docker-compose \u5305\u6765\u5b8c\u6210\u3002<\/span><\/a><span>docker-compose \u5305\u5305\u542b\u4e00\u4e2a wordpress \u5bb9\u5668\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u5b89\u88c5\u548c\u914d\u7f6e wordpress\u3002<\/span><\/p>\n<h2><span>\u5b89\u88c5 docker-compose<\/span><\/h2>\n<p><span>\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5 docker-compose \u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u6cd5\u3002\u7b2c\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u7cfb\u7edf\u4e0a\u7684\u5305\u7ba1\u7406\u5668\u3002\u4f8b\u5982\uff0c\u5728 Mac \u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 docker-compose\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>sudo apt-get install docker-compose<\/code><\/pre>\n<p><span>\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u662f\u4e0b\u8f7d docker-compose \u6587\u4ef6\u5e76\u5c06\u5176\u89e3\u538b\u7f29\u5230\u60a8\u7684\u7cfb\u7edf\u4e2d\u3002\u63d0\u53d6\u6587\u4ef6\u540e\uff0c\u60a8\u9700\u8981\u914d\u7f6e\u7cfb\u7edf\u4ee5\u4f7f\u7528\u5b83\u3002\u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u627e\u5230\u6709\u5173\u5982\u4f55\u6267\u884c\u6b64\u64cd\u4f5c\u7684\u5b8c\u6574\u6307\u5357\u3002<\/span><\/p>\n<p><span>\u5b89\u88c5 docker-compose \u540e\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u76ee\u5f55\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5f00\u59cb\u4f7f\u7528\u5b83\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker-compose up<\/code><\/pre>\n<p><span>\u6b64\u547d\u4ee4\u5c06\u5728\u5f53\u524d\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cabc\u201d\u7684\u65b0\u5e94\u7528\u7a0b\u5e8f\u3002\u5982\u679c\u60a8\u60f3\u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u5185\u90e8\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker-compose logs abc<\/code><\/pre>\n<p><span>\u6b64\u547d\u4ee4\u4f1a\u5c06\u201cabc\u201d\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u65e5\u5fd7\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002<\/span><\/p>\n<p><span>\u5982\u679c\u8981\u505c\u6b62\u201cabc\u201d\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker-compose down<\/code><\/pre>\n<h2><span>\u8bbe\u7f6e\u6682\u5b58\u73af\u5883<\/span><\/h2>\n<p><span>\u4f7f\u7528 docker \u521b\u5efa\u6682\u5b58\u73af\u5883\u5f88\u5bb9\u6613\uff0c\u53ea\u9700\u51e0\u5206\u949f\u3002\u8bbe\u7f6e\u6682\u5b58\u73af\u5883\u540e\uff0c\u4f7f\u7528 docker-compose \u90e8\u7f72\u66f4\u6539\u3002\u8fd9\u5c06\u5141\u8bb8\u60a8\u5728\u4e0d\u5f71\u54cd\u60a8\u7684\u5b9e\u9645\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u6d4b\u8bd5\u66f4\u65b0\u3002<\/span><\/p>\n<h2><span>\u90e8\u7f72\u60a8\u7684\u66f4\u6539<\/span><\/h2>\n<p><span>\u5f53\u60a8\u51c6\u5907\u90e8\u7f72\u65b0\u7248\u672c\u7684 wordpress \u7ad9\u70b9\u65f6\uff0c\u4f7f\u7528 docker-compose \u662f\u4e00\u4e2a\u5f88\u597d\u7684\u65b9\u6cd5\u3002\u4ee5\u4e0b\u6b65\u9aa4\u5411\u60a8\u5c55\u793a\u4e86\u5982\u4f55\uff1a<\/span><\/p>\n<p><span>1.\u642d\u5efadocker\u73af\u5883<\/span><\/p>\n<p><span>\u9996\u5148\uff0c\u60a8\u9700\u8981\u521b\u5efa\u4e00\u4e2a docker \u73af\u5883\u3002\u8fd9\u5c06\u5141\u8bb8\u60a8\u4f7f\u7528 docker \u547d\u4ee4\u6765\u7ba1\u7406\u60a8\u7684 wordpress \u7ad9\u70b9\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u73af\u5883\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker-compose up<\/code><\/pre>\n<p><span>\u8fd9\u5c06\u542f\u52a8\u4e00\u4e2a\u63a7\u5236\u53f0\uff0c\u5e2e\u52a9\u60a8\u8bbe\u7f6e\u60a8\u7684 wordpress \u7ad9\u70b9\u3002<\/span><\/p>\n<p><span>2.\u5b89\u88c5wordpress<\/span><\/p>\n<p><span>\u73af\u5883\u642d\u5efa\u597d\u4e4b\u540e\uff0c\u5c31\u9700\u8981\u5b89\u88c5wordpress\u4e86\u3002\u4e3a\u6b64\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker-compose install wordpress<\/code><\/pre>\n<p><span>\u8fd9\u4f1a\u5c06 wordpress \u5b89\u88c5\u5230\u73af\u5883\u4e2d\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a Web \u670d\u52a1\u5668\u3002<\/span><\/p>\n<p><span>3.\u5b89\u88c5docker-compose<\/span><\/p>\n<p><span>\u63a5\u4e0b\u6765\uff0c\u60a8\u9700\u8981\u5b89\u88c5 docker-compose\u3002\u4e3a\u6b64\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"wp-block-code\"><code>docker-compose install docker-compose<\/code><\/pre>\n<p><span>\u901a\u8fc7\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u6beb\u4e0d\u8d39\u529b\u5730\u4e3a\u60a8\u7684 WordPress \u7ad9\u70b9\u521b\u5efa\u6682\u5b58\u73af\u5883\u3002\u6b64\u73af\u5883\u53ef\u8ba9\u60a8\u5728\u66f4\u65b0\u4e0a\u7ebf\u4e4b\u524d\u5bf9\u5176\u8fdb\u884c\u6d4b\u8bd5\uff0c\u5e76\u4fdd\u6301\u60a8\u7684\u5b9e\u65f6\u7ad9\u70b9\u4e0d\u53d8\u3002<\/span><\/p>\n<div style='text-align:left' class='yasr-auto-insert-overall'><\/div><div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p class=\"qtranxs-available-languages-message qtranxs-available-languages-message-zh\">\u5bf9\u4e0d\u8d77\uff0c\u6b64\u5185\u5bb9\u53ea\u9002\u7528\u4e8e<a href=\"https:\/\/ways4.eu\/en\/wp-json\/wp\/v2\/posts\/2474\" class=\"qtranxs-available-language-link qtranxs-available-language-link-en\" title=\"English\">\u7f8e\u5f0f\u82f1\u6587<\/a>\u3002<\/p>\n","protected":false},"author":1,"featured_media":2479,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_oct_exclude_from_cache":false,"_mi_skip_tracking":false,"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"BlogPosting","_wpoai_wizard_id":""},"categories":[115,23,97,99],"tags":[168,167,47],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create and deploy a wordpress staging environment<\/title>\n<meta name=\"description\" content=\"Create and deploy a wordpress staging environment with docker in minutes\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create and deploy a wordpress staging environment\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e25\u683c\u4fdd\u5bc6\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-14T05:00:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-13T19:30:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-16736381622531447071152082631662.jpg?fit=1709%2C1170&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1709\" \/>\n\t<meta property=\"og:image:height\" content=\"1170\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pathfinder\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sabhe011\" \/>\n<meta name=\"twitter:site\" content=\"@sabhe011\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"pathfinder\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\"},\"author\":{\"name\":\"pathfinder\",\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\"},\"headline\":\"\u5728\u51e0\u5206\u949f\u5185\u4f7f\u7528 docker \u521b\u5efa\u548c\u90e8\u7f72 wordpress \u6682\u5b58\u73af\u5883\",\"datePublished\":\"2023-01-14T05:00:15+00:00\",\"dateModified\":\"2023-01-13T19:30:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\"},\"wordCount\":1367,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\"},\"keywords\":[\"docker\",\"virtualization\",\"WordPress\"],\"articleSection\":[\"Coding\",\"Computers and IT\",\"\u5f00\u59cb\",\"WordPress\"],\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\",\"url\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\",\"name\":\"Create and deploy a wordpress staging environment\",\"isPartOf\":{\"@id\":\"https:\/\/ways4.eu\/#website\"},\"datePublished\":\"2023-01-14T05:00:15+00:00\",\"dateModified\":\"2023-01-13T19:30:13+00:00\",\"description\":\"Create and deploy a wordpress staging environment with docker in minutes\",\"breadcrumb\":{\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ways4.eu\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create and deploy a wordpress staging environment with docker in minutes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ways4.eu\/#website\",\"url\":\"https:\/\/ways4.eu\/\",\"name\":\"\u4e25\u683c\u4fdd\u5bc6\",\"description\":\"\u4e0d\u8c08\u8bba\u5b83\",\"publisher\":{\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ways4.eu\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81\",\"name\":\"pathfinder\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1\",\"width\":702,\"height\":841,\"caption\":\"pathfinder\"},\"logo\":{\"@id\":\"https:\/\/ways4.eu\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/ways4.eu\",\"https:\/\/twitter.com\/sabhe011\"],\"url\":\"https:\/\/ways4.eu\/zh\/blog\/author\/pathfinder\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create and deploy a wordpress staging environment","description":"Create and deploy a wordpress staging environment with docker in minutes","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/","og_locale":"zh_CN","og_type":"article","og_title":"Create and deploy a wordpress staging environment","og_url":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/","og_site_name":"\u4e25\u683c\u4fdd\u5bc6","article_published_time":"2023-01-14T05:00:15+00:00","article_modified_time":"2023-01-13T19:30:13+00:00","og_image":[{"width":1709,"height":1170,"url":"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-16736381622531447071152082631662.jpg?fit=1709%2C1170&ssl=1","type":"image\/jpeg"}],"author":"pathfinder","twitter_card":"summary_large_image","twitter_creator":"@sabhe011","twitter_site":"@sabhe011","twitter_misc":{"\u4f5c\u8005":"pathfinder","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#article","isPartOf":{"@id":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/"},"author":{"name":"pathfinder","@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81"},"headline":"\u5728\u51e0\u5206\u949f\u5185\u4f7f\u7528 docker \u521b\u5efa\u548c\u90e8\u7f72 wordpress \u6682\u5b58\u73af\u5883","datePublished":"2023-01-14T05:00:15+00:00","dateModified":"2023-01-13T19:30:13+00:00","mainEntityOfPage":{"@id":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/"},"wordCount":1367,"commentCount":0,"publisher":{"@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81"},"keywords":["docker","virtualization","WordPress"],"articleSection":["Coding","Computers and IT","\u5f00\u59cb","WordPress"],"inLanguage":"zh-CN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/","url":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/","name":"Create and deploy a wordpress staging environment","isPartOf":{"@id":"https:\/\/ways4.eu\/#website"},"datePublished":"2023-01-14T05:00:15+00:00","dateModified":"2023-01-13T19:30:13+00:00","description":"Create and deploy a wordpress staging environment with docker in minutes","breadcrumb":{"@id":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ways4.eu\/blog\/2023\/01\/14\/create-and-deploy-a-wordpress-staging-environment-with-docker-in-minutes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ways4.eu\/"},{"@type":"ListItem","position":2,"name":"Create and deploy a wordpress staging environment with docker in minutes"}]},{"@type":"WebSite","@id":"https:\/\/ways4.eu\/#website","url":"https:\/\/ways4.eu\/","name":"\u4e25\u683c\u4fdd\u5bc6","description":"\u4e0d\u8c08\u8bba\u5b83","publisher":{"@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ways4.eu\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":["Person","Organization"],"@id":"https:\/\/ways4.eu\/#\/schema\/person\/00041dcd2cf535a70052cf591c2abd81","name":"pathfinder","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/ways4.eu\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.ways4.eu\/wp-content\/uploads\/2023\/01\/wp-1674746983690.jpg?fit=702%2C841&ssl=1","width":702,"height":841,"caption":"pathfinder"},"logo":{"@id":"https:\/\/ways4.eu\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/ways4.eu","https:\/\/twitter.com\/sabhe011"],"url":"https:\/\/ways4.eu\/zh\/blog\/author\/pathfinder\/"}]}},"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/posts\/2474"}],"collection":[{"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/comments?post=2474"}],"version-history":[{"count":5,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/posts\/2474\/revisions"}],"predecessor-version":[{"id":2480,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/posts\/2474\/revisions\/2480"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/media\/2479"}],"wp:attachment":[{"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/media?parent=2474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/categories?post=2474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ways4.eu\/zh\/wp-json\/wp\/v2\/tags?post=2474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}