{"id":169980,"date":"2020-01-24T09:00:20","date_gmt":"2020-01-24T01:00:20","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=169980"},"modified":"2020-01-16T10:43:15","modified_gmt":"2020-01-16T02:43:15","slug":"dockerfile-copy-add","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/dockerfile-copy-add.html","title":{"rendered":"\u6982\u8ff0\u770b\u662f\u76f8\u4f3c\u7684COPY \u4e0e ADD \u547d\u4ee4"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nDockerfile \u4e2d\u63d0\u4f9b\u4e86\u4e24\u4e2a\u975e\u5e38\u76f8\u4f3c\u7684\u547d\u4ee4 COPY \u548c ADD\uff0c\u672c\u6587\u5c1d\u8bd5\u89e3\u91ca\u8fd9\u4e24\u4e2a\u547d\u4ee4\u7684\u57fa\u672c\u529f\u80fd\uff0c\u4ee5\u53ca\u5176\u5f02\u540c\u70b9\uff0c\u7136\u540e\u603b\u7ed3\u5176\u5404\u81ea\u9002\u5408\u7684\u5e94\u7528\u573a\u666f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
Build \u4e0a\u4e0b\u6587\u7684\u6982\u5ff5<\/strong><\/div>\n

\u5728\u4f7f\u7528 docker build \u547d\u4ee4\u901a\u8fc7 Dockerfile \u521b\u5efa\u955c\u50cf\u65f6\uff0c\u4f1a\u4ea7\u751f\u4e00\u4e2a build \u4e0a\u4e0b\u6587(context)\u3002\u6240\u8c13\u7684 build \u4e0a\u4e0b\u6587\u5c31\u662f docker build \u547d\u4ee4\u7684 PATH \u6216 URL \u6307\u5b9a\u7684\u8def\u5f84\u4e2d\u7684\u6587\u4ef6\u7684\u96c6\u5408\u3002\u5728\u955c\u50cf build \u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u5f15\u7528\u4e0a\u4e0b\u6587\u4e2d\u7684\u4efb\u4f55\u6587\u4ef6\uff0c\u6bd4\u5982\u6211\u4eec\u8981\u4ecb\u7ecd\u7684 COPY \u548c ADD \u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u5f15\u7528\u4e0a\u4e0b\u6587\u4e2d\u7684\u6587\u4ef6\u3002<\/p>\n

\u9ed8\u8ba4\u60c5\u51b5\u4e0b docker build -t testx . \u547d\u4ee4\u4e2d\u7684 . \u8868\u793a build \u4e0a\u4e0b\u6587\u4e3a\u5f53\u524d\u76ee\u5f55\u3002\u5f53\u7136\u6211\u4eec\u53ef\u4ee5\u6307\u5b9a\u4e00\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u4e0a\u4e0b\u6587\uff0c\u6bd4\u5982\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

$ docker build -t testx \/home\/nick\/hc<\/pre>\n

\u6211\u4eec\u6307\u5b9a \/home\/nick\/hc \u76ee\u5f55\u4e3a build \u4e0a\u4e0b\u6587\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b docker \u4f1a\u4f7f\u7528\u5728\u4e0a\u4e0b\u6587\u7684\u6839\u76ee\u5f55\u4e0b\u627e\u5230\u7684 Dockerfile \u6587\u4ef6\u3002<\/p>\n

COPY \u548c ADD \u547d\u4ee4\u4e0d\u80fd\u62f7\u8d1d\u4e0a\u4e0b\u6587\u4e4b\u5916\u7684\u672c\u5730\u6587\u4ef6<\/strong><\/span><\/div>\n

\u5bf9\u4e8e COPY \u548c ADD \u547d\u4ee4\u6765\u8bf4\uff0c\u5982\u679c\u8981\u628a\u672c\u5730\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\u955c\u50cf\u4e2d\uff0c\u90a3\u4e48\u672c\u5730\u7684\u6587\u4ef6\u5fc5\u987b\u662f\u5728\u4e0a\u4e0b\u6587\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002\u5176\u5b9e\u8fd9\u4e00\u70b9\u5f88\u597d\u89e3\u91ca\uff0c\u56e0\u4e3a\u5728\u6267\u884c build \u547d\u4ee4\u65f6\uff0cdocker \u5ba2\u6237\u7aef\u4f1a\u628a\u4e0a\u4e0b\u6587\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u53d1\u9001\u7ed9 docker daemon\u3002\u8003\u8651 docker \u5ba2\u6237\u7aef\u548c docker daemon \u4e0d\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u7684\u60c5\u51b5\uff0cbuild \u547d\u4ee4\u53ea\u80fd\u4ece\u4e0a\u4e0b\u6587\u4e2d\u83b7\u53d6\u6587\u4ef6\u3002\u5982\u679c\u6211\u4eec\u5728 Dockerfile \u7684 COPY \u548c ADD \u547d\u4ee4\u4e2d\u5f15\u7528\u4e86\u4e0a\u4e0b\u6587\u4e2d\u6ca1\u6709\u7684\u6587\u4ef6\uff0c\u5c31\u4f1a\u6536\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u9519\u8bef\uff1a<\/p>\n

\"\"<\/p>\n

\u4e0e WORKDIR \u534f\u540c\u5de5\u4f5c<\/strong><\/span><\/div>\n

WORKDIR \u547d\u4ee4\u4e3a\u540e\u7eed\u7684 RUN\u3001CMD\u3001COPY\u3001ADD \u7b49\u547d\u4ee4\u914d\u7f6e\u5de5\u4f5c\u76ee\u5f55\u3002\u5728\u8bbe\u7f6e\u4e86 WORKDIR \u547d\u4ee4\u540e\uff0c\u63a5\u4e0b\u6765\u7684 COPY \u548c ADD \u547d\u4ee4\u4e2d\u7684\u76f8\u5bf9\u8def\u5f84\u5c31\u662f\u76f8\u5bf9\u4e8e WORKDIR \u6307\u5b9a\u7684\u8def\u5f84\u3002\u6bd4\u5982\u6211\u4eec\u5728 Dockerfile \u4e2d\u6dfb\u52a0\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

WORKDIR \/app\r\nCOPY checkredis.py .<\/pre>\n

\u7136\u540e\u6784\u5efa\u540d\u79f0\u4e3a testx \u7684\u5bb9\u5668\u955c\u50cf\uff0c\u5e76\u8fd0\u884c\u4e00\u4e2a\u5bb9\u5668\u67e5\u770b\u6587\u4ef6\u8def\u5f84\uff1a<\/p>\n

\"\"<\/p>\n

checkredis.py \u6587\u4ef6\u5c31\u662f\u88ab\u590d\u5236\u5230\u4e86 WORKDIR \/app \u76ee\u5f55\u4e0b\u3002<\/p>\n

COPY \u547d\u4ee4\u7684\u7b80\u5355\u6027<\/strong><\/div>\n

\u5982\u679c\u4ec5\u4ec5\u662f\u628a\u672c\u5730\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\u5bb9\u5668\u955c\u50cf\u4e2d\uff0cCOPY \u547d\u4ee4\u662f\u6700\u5408\u9002\u4e0d\u8fc7\u7684\u3002\u5176\u547d\u4ee4\u7684\u683c\u5f0f\u4e3a\uff1a<\/p>\n

COPY <src> <dest><\/span><\/p>\n

\u9664\u4e86\u6307\u5b9a\u5b8c\u6574\u7684\u6587\u4ef6\u540d\u5916\uff0cCOPY \u547d\u4ee4\u8fd8\u652f\u6301 Go \u98ce\u683c\u7684\u901a\u914d\u7b26\uff0c\u6bd4\u5982\uff1a<\/p>\n

COPY check* \/testdir\/ <\/pre>\n

# \u62f7\u8d1d\u6240\u6709 check \u5f00\u5934\u7684\u6587\u4ef6<\/p>\n

COPY check?.log \/testdir\/<\/pre>\n

# ? \u662f\u5355\u4e2a\u5b57\u7b26\u7684\u5360\u4f4d\u7b26\uff0c\u6bd4\u5982\u5339\u914d\u6587\u4ef6 check1.log<\/p>\n

\u5bf9\u4e8e\u76ee\u5f55\u800c\u8a00\uff0cCOPY \u548c ADD \u547d\u4ee4\u5177\u6709\u76f8\u540c\u7684\u7279\u70b9\uff1a\u53ea\u590d\u5236\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\u800c\u4e0d\u5305\u542b\u76ee\u5f55\u81ea\u8eab\u3002\u6bd4\u5982\u6211\u4eec\u5728 Dockerfile \u4e2d\u6dfb\u52a0\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n

WORKDIR \/app\r\nCOPY nickdir .<\/pre>\n

\u5176\u4e2d nickdir \u76ee\u5f55\u7684\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n

\"\"<\/p>\n

\u91cd\u65b0\u6784\u5efa\u955c\u50cf testx\uff0c\u8fd0\u884c\u4e00\u4e2a\u5bb9\u5668\u5e76\u67e5\u770b \/app \u76ee\u5f55\u4e0b\u7684\u5185\u5bb9\uff1a<\/p>\n

\"\"<\/p>\n

\u8fd9\u91cc\u53ea\u6709 file1 \u548c file2\uff0c\u5c11\u4e86\u4e00\u5c42\u76ee\u5f55 nickdir\u3002\u5982\u679c\u60f3\u8ba9 file1 \u548c file2 \u8fd8\u4fdd\u5b58\u5728 nickdir \u76ee\u5f55\u4e2d\uff0c\u9700\u8981\u5728\u76ee\u6807\u8def\u5f84\u4e2d\u6307\u5b9a\u8fd9\u4e2a\u76ee\u5f55\u7684\u540d\u79f0\uff0c\u6bd4\u5982\uff1a<\/p>\n

WORKDIR \/app\r\nCOPY nickdir .\/nickdir<\/pre>\n
ADD \u547d\u4ee4\u8fd8\u53ef\u4ee5\u5e72\u5176\u5b83\u4e8b\u60c5<\/strong><\/div>\n

ADD \u547d\u4ee4\u7684\u683c\u5f0f\u548c COPY \u547d\u4ee4\u76f8\u540c\uff0c\u4e5f\u662f\uff1a<\/p>\n

ADD <src> <dest><\/span><\/p>\n

\u9664\u4e86\u4e0d\u80fd\u7528\u5728 multistage \u7684\u573a\u666f\u4e0b\uff0cADD \u547d\u4ee4\u53ef\u4ee5\u5b8c\u6210 COPY \u547d\u4ee4\u7684\u6240\u6709\u529f\u80fd\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u5b8c\u6210\u4e24\u7c7b\u8d85\u9177\u7684\u529f\u80fd\uff1a<\/p>\n

\u89e3\u538b\u538b\u7f29\u6587\u4ef6\u5e76\u628a\u5b83\u4eec\u6dfb\u52a0\u5230\u955c\u50cf\u4e2d
\n\u4ece url \u62f7\u8d1d\u6587\u4ef6\u5230\u955c\u50cf\u4e2d
\n\u5f53\u7136\uff0c\u8fd9\u4e9b\u529f\u80fd\u4e5f\u8ba9 ADD \u547d\u4ee4\u7528\u8d77\u6765\u590d\u6742\u4e00\u4e9b\uff0c\u4e0d\u5982 COPY \u547d\u4ee4\u90a3\u4e48\u76f4\u89c2\u3002<\/p>\n

\u89e3\u538b\u538b\u7f29\u6587\u4ef6\u5e76\u628a\u5b83\u4eec\u6dfb\u52a0\u5230\u955c\u50cf\u4e2d<\/strong><\/span><\/div>\n

\u5982\u679c\u6211\u4eec\u6709\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\u5305\uff0c\u5e76\u4e14\u9700\u8981\u628a\u8fd9\u4e2a\u538b\u7f29\u5305\u4e2d\u7684\u6587\u4ef6\u6dfb\u52a0\u5230\u955c\u50cf\u4e2d\u3002\u9700\u4e0d\u9700\u8981\u5148\u89e3\u5f00\u538b\u7f29\u5305\u7136\u540e\u6267\u884c COPY \u547d\u4ee4\u5462\uff1f\u5f53\u7136\u4e0d\u9700\u8981\uff01\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 ADD \u547d\u4ee4\u4e00\u6b21\u641e\u5b9a\uff1a<\/p>\n

WORKDIR \/app\r\nADD nickdir.tar.gz .<\/pre>\n

\u8fd9\u5e94\u8be5\u662f ADD \u547d\u4ee4\u7684\u6700\u4f73\u4f7f\u7528\u573a\u666f\u4e86\uff01<\/p>\n

\u4ece url \u62f7\u8d1d\u6587\u4ef6\u5230\u955c\u50cf\u4e2d<\/strong><\/span><\/div>\n

\u8fd9\u662f\u4e00\u4e2a\u66f4\u52a0\u9177\u70ab\u7684\u7528\u6cd5\uff01\u4f46\u662f\u5728 docker \u5b98\u65b9\u6587\u6863\u7684\u6700\u4f73\u5b9e\u8df5\u4e2d\u5374\u5f3a\u70c8\u5efa\u8bae\u4e0d\u8981\u8fd9\u4e48\u7528\uff01\uff01docker \u5b98\u65b9\u5efa\u8bae\u6211\u4eec\u5f53\u9700\u8981\u4ece\u8fdc\u7a0b\u590d\u5236\u6587\u4ef6\u65f6\uff0c\u6700\u597d\u4f7f\u7528 curl \u6216 wget \u547d\u4ee4\u6765\u4ee3\u66ff ADD \u547d\u4ee4\u3002\u539f\u56e0\u662f\uff0c\u5f53\u4f7f\u7528 ADD \u547d\u4ee4\u65f6\uff0c\u4f1a\u521b\u5efa\u66f4\u591a\u7684\u955c\u50cf\u5c42\uff0c\u5f53\u7136\u955c\u50cf\u7684 size \u4e5f\u4f1a\u66f4\u5927(\u4e0b\u9762\u7684\u4e24\u6bb5\u4ee3\u7801\u6765\u81ea docker \u5b98\u65b9\u6587\u6863)\uff1a<\/p>\n

ADD http:\/\/example.com\/big.tar.xz \/usr\/src\/things\/\r\nRUN tar -xJf \/usr\/src\/things\/big.tar.xz -C \/usr\/src\/things\r\nRUN make -C \/usr\/src\/things all<\/pre>\n

\u5982\u679c\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u4e0d\u4ec5\u955c\u50cf\u7684\u5c42\u6570\u51cf\u5c11\uff0c\u800c\u4e14\u955c\u50cf\u4e2d\u4e5f\u4e0d\u5305\u542b big.tar.xz \u6587\u4ef6\uff1a<\/p>\n

RUN mkdir -p \/usr\/src\/things \\\r\n    && curl -SL http:\/\/example.com\/big.tar.xz \\\r\n    | tar -xJC \/usr\/src\/things \\\r\n    && make -C \/usr\/src\/things all<\/pre>\n

\u597d\u5427\uff0c\u770b\u8d77\u6765\u53ea\u6709\u5728\u89e3\u538b\u538b\u7f29\u6587\u4ef6\u5e76\u628a\u5b83\u4eec\u6dfb\u52a0\u5230\u955c\u50cf\u4e2d\u65f6\u624d\u9700\u8981 ADD \u547d\u4ee4\uff01<\/p>\n

\u52a0\u901f\u955c\u50cf\u6784\u5efa\u7684\u6280\u5de7<\/strong><\/div>\n

\u5728\u4f7f\u7528 COPY \u548c ADD \u547d\u4ee4\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u6280\u5de7\u6765\u52a0\u901f\u955c\u50cf\u7684 build \u8fc7\u7a0b\u3002\u6bd4\u5982\u628a\u90a3\u4e9b\u6700\u4e0d\u5bb9\u6613\u53d1\u751f\u53d8\u5316\u7684\u6587\u4ef6\u7684\u62f7\u8d1d\u64cd\u4f5c\u653e\u5728\u8f83\u4f4e\u7684\u955c\u50cf\u5c42\u4e2d\uff0c\u8fd9\u6837\u5728\u91cd\u65b0 build \u955c\u50cf\u65f6\u5c31\u4f1a\u4f7f\u7528\u524d\u9762 build \u4ea7\u751f\u7684\u7f13\u5b58\u3002\u6bd4\u5982\u7b14\u8005\u6784\u5efa\u955c\u50cf\u65f6\u9700\u8981\u7528\u5230\u4e0b\u9762\u51e0\u4e2a\u6587\u4ef6\uff1a<\/p>\n

\"\"<\/p>\n

\u5176\u4e2d myhc.py \u6587\u4ef6\u4e0d\u7ecf\u5e38\u53d8\u5316\uff0c\u800c checkmongo.py\u3001checkmysql.py \u548c checkredis.py \u8fd9\u4e09\u4e2a\u6587\u4ef6\u5219\u7ecf\u5e38\u53d8\u5316\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u8fd9\u6837\u6765\u8bbe\u8ba1 Dockerfile \u6587\u4ef6\uff1a<\/p>\n

WORKDIR \/app\r\nCOPY myhc.py .\r\nCOPY check* .\/<\/pre>\n

\u8ba9 COPY myhc.py . \u5355\u72ec\u5360\u636e\u4e00\u4e2a\u955c\u50cf\u5c42\uff0c\u5f53 build \u8fc7\u4e00\u6b21\u540e\uff0c\u6bcf\u6b21\u56e0 checkmongo.py\u3001checkmysql.py \u548c checkredis.py \u8fd9\u4e09\u4e2a\u6587\u4ef6\u53d8\u5316\u800c\u5bfc\u81f4\u7684\u91cd\u65b0 build \u90fd\u4e0d\u4f1a\u91cd\u65b0 build COPY myhc.py . \u955c\u50cf\u5c42\uff1a<\/p>\n

\"\"<\/p>\n

\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u7b2c\u4e8c\u6b65\u548c\u7b2c\u4e09\u6b65\u90fd\u6ca1\u6709\u91cd\u65b0 build \u955c\u50cf\u5c42\uff0c\u800c\u662f\u4f7f\u7528\u4e86\u4e4b\u524d\u7684\u7f13\u5b58\uff0c\u4ece\u7b2c\u56db\u6b65\ufffd\ufffd\u5f00\u59cb\u91cd\u65b0 build \u4e86\u955c\u50cf\u5c42\u3002\u5f53\u6587\u4ef6 size \u6bd4\u8f83\u5927\u4e14\u6587\u4ef6\u7684\u6570\u91cf\u53c8\u6bd4\u8f83\u591a\uff0c\u5c24\u5176\u662f\u9700\u8981\u6267\u884c\u5b89\u88c5\u7b49\u64cd\u4f5c\u65f6\uff0c\u8fd9\u6837\u7684\u8bbe\u8ba1\u5bf9\u4e8e build \u901f\u5ea6\u7684\u63d0\u5347\u8fd8\u662f\u5f88\u660e\u663e\u7684\u3002\u6240\u4ee5\u6211\u4eec\u5e94\u8be5\u5c3d\u91cf\u9009\u62e9\u80fd\u591f\u4f7f\u7528\u7f13\u5b58\u7684 Dockerfile \u5199\u6cd5\u3002<\/p>\n

\u603b\u7ed3<\/strong><\/div>\n

\u5f53\u7b2c\u4e00\u6b21\u770b\u5230 COPY \u548c ADD \u547d\u4ee4\u65f6\u4e0d\u514d\u8ba9\u4eba\u611f\u5230\u7591\u60d1\u3002\u4f46\u5206\u6790\u4e4b\u540e\u5927\u5bb6\u4f1a\u53d1\u73b0 COPY \u547d\u4ee4\u662f\u4e3a\u6700\u57fa\u672c\u7684\u7528\u6cd5\u8bbe\u8ba1\u7684\uff0c\u6982\u5ff5\u6e05\u6670\uff0c\u64cd\u4f5c\u7b80\u5355\u3002\u800c ADD \u547d\u4ee4\u57fa\u672c\u4e0a\u662f COPY \u547d\u4ee4\u7684\u8d85\u96c6(\u9664\u4e86 multistage \u573a\u666f)\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e9b\u65b9\u4fbf\u3001\u9177\u70ab\u7684\u62f7\u8d1d\u64cd\u4f5c\u3002ADD \u547d\u4ee4\u5728\u589e\u52a0\u4e86\u529f\u80fd\u7684\u540c\u65f6\u4e5f\u589e\u52a0\u4e86\u4f7f\u7528\u5b83\u7684\u590d\u6742\u5ea6\uff0c\u6bd4\u5982\u4ece url \u62f7\u8d1d\u538b\u7f29\u6587\u4ef6\u65f6\u5f0a\u5927\u4e8e\u5229\u3002\u5e0c\u671b\u672c\u6587\u80fd\u591f\u89e3\u53bb\u5927\u5bb6\u5bf9 Dockerfile \u4e2d COPY \u548c ADD \u547d\u4ee4\u7684\u7591\u60d1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u4f7f\u7528 docker build \u547d\u4ee4\u901a\u8fc7 Dockerfile \u521b\u5efa\u955c\u50cf\u65f6\uff0c\u4f1a\u4ea7\u751f\u4e00\u4e2a build \u4e0a\u4e0b\u6587( […]<\/p>\n","protected":false},"author":310,"featured_media":170002,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-169980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/169980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=169980"}],"version-history":[{"count":17,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/169980\/revisions"}],"predecessor-version":[{"id":170560,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/169980\/revisions\/170560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/170002"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=169980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=169980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=169980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}