{"id":726,"date":"2021-11-23T03:16:00","date_gmt":"2021-11-23T03:16:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=726"},"modified":"2021-11-23T03:16:00","modified_gmt":"2021-11-23T03:16:00","slug":"726","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/11\/23\/726\/","title":{"rendered":"Proxmox lxc alpine \u5b89\u88c5docker\uff0c\u4f7f\u7528 nginx-php \u5bb9\u5668"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/11\/2961869798.webp\" alt=\"pve.webp\" title=\"pve.webp\"><\/p>\n<h2>Proxmox lxc alpine \u5b89\u88c5docker<\/h2>\n<pre><code>echo \"http:\/\/mirrors.aliyun.com\/alpine\/latest-stable\/main\/\" &gt; \/etc\/apk\/repositories \\r\n &amp;&amp; echo \"http:\/\/mirrors.aliyun.com\/alpine\/latest-stable\/community\/\"  &gt;&gt; \/etc\/apk\/repositories\n\napk add docker\nservice docker start\nrc-update add docker boot<\/code><\/pre>\n<h2>\u63a8\u8350 linuxserver\/nginx \u4e5f\u652f\u6301php\u548c\u66f4\u591a\u63d2\u4ef6<\/h2>\n<pre><code>docker run -d \\r\n  --name=nginx \\r\n  -e PUID=1000 \\r\n  -e PGID=1000 \\r\n  -e TZ=Europe\/London \\r\n  -p 80:80 \\r\n  -p 443:443 \\r\n  --restart unless-stopped \\r\n  linuxserver\/nginx<\/code><\/pre>\n<h2>Proxmox lxc alpine \u5b89\u88c5 openssh-server<\/h2>\n<pre><code>apk add openssh-server\nservice sshd start\nrc-update add sshd boot<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Proxmox lxc alpine \u5b89\u88c5docker echo &#8220;http:\/\/mirrors.a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[60],"class_list":["post-726","post","type-post","status-publish","format-standard","hentry","category-vps","tag-pve"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=726"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/726\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}