{"id":908,"date":"2022-01-07T09:34:47","date_gmt":"2022-01-07T01:34:47","guid":{"rendered":"https:\/\/www.wccass.com\/?p=908"},"modified":"2024-11-12T11:58:59","modified_gmt":"2024-11-12T03:58:59","slug":"docker%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8","status":"publish","type":"post","link":"https:\/\/blog.tongyunli.top\/?p=908","title":{"rendered":"Docker\u547d\u4ee4\u5927\u5168"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">1. \u955c\u50cf\u4ed3\u5e93<\/h5>\n\n\n\n<p>1.1 <code>docker search [OPTIONS] TERM \/\/ \u641c\u7d22\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-f, --filter filter<\/code><\/td><td>\u6839\u636e\u6761\u4ef6\u7b5b\u9009<\/td><td><code>--filter=is-automated=true \/\/ \u53ea\u5217\u51fa automated build\u7c7b\u578b\u7684\u955c\u50cf<\/code><br><code>--filter=stars=10 \/\/ \u5217\u51fa\u6536\u85cf\u6570\u4e0d\u5c0f\u4e8e\u6307\u5b9a\u503c\u7684\u955c\u50cf<\/code><\/td><\/tr><tr><td><code>--limit int<\/code><\/td><td>\u8bbe\u7f6e\u641c\u7d22\u7ed3\u679c\u7684\u8bb0\u5f55\u6570\u91cf<\/td><td><\/td><\/tr><tr><td><code>--no-trunc<\/code><\/td><td>\u641c\u7d22\u7ed3\u679c\u5b8c\u6574\u663e\u793a<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>1.2 <code>docker pull [OPTIONS] NAME[:TAG|@DIGEST] \/\/ \u4ece\u955c\u50cf\u53c2\u6570\u4e2d\u62c9\u53d6\u6307\u5b9a\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-a<\/code><\/td><td>\u62c9\u53d6\u6240\u6709tagged\u955c\u50cf<\/td><td><\/td><\/tr><tr><td><code>--disable-content-trust<\/code><\/td><td>\u5ffd\u7565\u955c\u50cf\u7684\u6821\u9a8c,\u9ed8\u8ba4\u4e3atrue<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>1.3 <code>docker push [OPTIONS] NAME[:TAG] \/\/ \u4e0a\u4f20\u955c\u50cf\u5230\u4ed3\u5e93(\u8981\u5148\u767b\u5f55\u4ed3\u5e93)<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>--disable-content-trust<\/code><\/td><td>\u5ffd\u7565\u955c\u50cf\u6821\u9a8c<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>1.4<code>docker login -u \u7528\u6237\u540d -p \u5bc6\u7801 \/\/\u767b\u5f55<\/code><\/p>\n\n\n\n<p>1.5 <code>docker logout \/\/ \u767b\u51fa<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">2. \u5bb9\u5668\u64cd\u4f5c<\/h5>\n\n\n\n<p>2.1 <code>docker ps [OPTIONS] \/\/\u5217\u51fa\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-a<\/code><\/td><td>\u663e\u793a\u6240\u6709\u5bb9\u5668,\u9ed8\u8ba4\u53ea\u663e\u793a\u6b63\u5728\u8fd0\u884c\u7684<\/td><td><\/td><\/tr><tr><td><code>-f<\/code><\/td><td>\u8fc7\u6ee4<\/td><td><code>docker ps -f name=hello<\/code><\/td><\/tr><tr><td><code>-n 10<\/code><\/td><td>\u663e\u793a\u6700\u8fd1\u521b\u5efa\u7684\u5bb9\u5668<\/td><td><\/td><\/tr><tr><td><code>--no-trunc<\/code><\/td><td>\u663e\u793a\u5168\u90e8\u63cf\u8ff0<\/td><td><\/td><\/tr><tr><td><code>-q<\/code><\/td><td>\u53ea\u663e\u793a\u7b80\u7565ID<\/td><td><\/td><\/tr><tr><td><code>-s<\/code><\/td><td>\u663e\u793a\u603b\u7684\u6587\u4ef6\u5927\u5c0f<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2.2<code>docker inspect [OPTIONS] NAME|ID \/\/\u83b7\u53d6\u5bb9\u5668\u6216\u955c\u50cf\u7684\u5143\u6570\u636e<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-f filter<\/code><\/td><td>\u7b5b\u9009<\/td><td><\/td><\/tr><tr><td><code>-s<\/code><\/td><td>\u5982\u679c\u662f\u4e00\u4e2a\u5bb9\u5668\u7684\u8bdd\u8fd4\u56de\u5176\u6587\u4ef6\u5927\u5c0f<\/td><td><\/td><\/tr><tr><td><code>--type image\/container<\/code><\/td><td>\u8fd4\u56de\u6307\u5b9a\u7c7b\u578b\u7684JSON<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2.3 <code>docker top CONTAINER \/\/ \u67e5\u770b\u6307\u5b9a\u5bb9\u5668\u4e2d\u8fd0\u884c\u7684\u8fdb\u7a0b<\/code><\/p>\n\n\n\n<p>2.4 <code>docker attach [OPTIONS] CONTAINER \/\/\u8fdb\u5165\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-detach-keys string<\/code><\/td><td><\/td><td><\/td><\/tr><tr><td><code>--no-stdin<\/code><\/td><td><\/td><td><\/td><\/tr><tr><td><code>--sig-proxy<\/code><\/td><td><code>\u9ed8\u8ba4\u4e3atrue<\/code><\/td><td><code>--sig-proxy=false<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2.5 <code>docker events [OPTIONS] \/\/\u4ece\u670d\u52a1\u5668\u83b7\u53d6\u5b9e\u65f6\u4e8b\u4ef6<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-f filter<\/code><\/td><td>\u8fc7\u6ee4<\/td><td><\/td><\/tr><tr><td><code>--since timestamp<\/code><\/td><td><code>\u663e\u793a\u5728\u6307\u5b9a\u65f6\u95f4\u4e4b\u540e\u53d1\u751f\u7684\u4e8b\u4ef6<\/code><\/td><td><code>docker events --since=1467302400<\/code><\/td><\/tr><tr><td><code>--until timestamp<\/code><\/td><td><code>\u663e\u793a\u5728\u6307\u5b9a\u65f6\u95f4\u4e4b\u524d\u6240\u4ea7\u751f\u7684\u4e8b\u4ef6<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2.6 <code>docker logs [OPTIONS] CONTAINER \/\/\u83b7\u53d6\u5bb9\u5668\u7684\u65e5\u5fd7<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>--details<\/code><\/td><td><code>\u663e\u793a\u8be6\u7ec6\u65e5\u5fd7<\/code><\/td><td><\/td><\/tr><tr><td><code>-f<\/code><\/td><td><code>\u65e5\u5fd7\u5b9e\u65f6\u8f93\u51fa<\/code><\/td><td><\/td><\/tr><tr><td><code>--since timestamp<\/code><\/td><td><\/td><td><\/td><\/tr><tr><td><code>--until timestamp<\/code><\/td><td><\/td><td><\/td><\/tr><tr><td><code>--tail num<\/code><\/td><td><code>\u8f93\u51fa\u6700\u540e\u591a\u5c11\u884c\u65e5\u5fd7<\/code><\/td><td><\/td><\/tr><tr><td><code>-t<\/code><\/td><td><code>\u663e\u793a\u65e5\u5fd7\u65f6\u95f4<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2.7 <code>docker wait CONTAINER... \/\/\u7b49\u5f85\u5bb9\u5668\u505c\u6b62\u5e76\u8f93\u51fa\u5176\u9000\u51fa\u4ee3\u7801<\/code><\/p>\n\n\n\n<p>2.8 <code>docker export -o fileName.tar CONTAINER \/\/\u5c06\u6307\u5b9a\u5bb9\u5668\u6253\u5305\u5230tar\u6587\u6863\u4e2d,\u53ef\u4ee5\u6307\u5b9a\u6587\u4ef6\u8def\u5f84<\/code><\/p>\n\n\n\n<p>2.9 <code>docker port CONTAINER [PORT] \/\/ \u5217\u51fa\u5bb9\u5668\u7684\u7aef\u53e3\u6620\u5c04(\u5bb9\u5668\u7aef\u53e3\u4e0e\u4e3b\u673a\u7aef\u53e3\u5bf9\u5e94\u5173\u7cfb)<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">3.\u5bb9\u5668rootfs\u547d\u4ee4<\/h5>\n\n\n\n<p>3.1 <code>docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] \/\/ \u4ece\u4e00\u4e2a\u5bb9\u5668\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-a<\/code><\/td><td><code>\u955c\u50cf\u4f5c\u8005<\/code><\/td><td><\/td><\/tr><tr><td><code>-c<\/code><\/td><td><code>\u4f7f\u7528Dockerfile\u6307\u4ee4\u521b\u5efa\u955c\u50cf<\/code><\/td><td><\/td><\/tr><tr><td><code>-m<\/code><\/td><td><code>\u63d0\u4ea4\u65f6\u7684\u8bf4\u660e\u6587\u5b57<\/code><\/td><td><\/td><\/tr><tr><td><code>-p<\/code><\/td><td><code>\u5728\u63d0\u4ea4\u65f6,\u6682\u505c\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>3.2 <code>docker cp \/\/ \u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u7684\u6587\u4ef6\u590d\u5236<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><\/th><th><\/th><\/tr><\/thead><tbody><tr><td><code>docker cp [options] CONTAINER:SRC_PATH TAR_PATH<\/code><\/td><td><code>\u4ece\u5bb9\u5668\u4e2d\u590d\u5236\u5230\u4e3b\u673a<\/code><\/td><\/tr><tr><td><code>docker cp [options] SRC_PATH CONTAINER:TAR_PATH<\/code><\/td><td><code>\u4ece\u4e3b\u673a\u590d\u5236\u5230\u5bb9\u5668\u4e2d<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-a<\/code><\/td><td><code>\u590d\u5236\u6240\u6709\u7684gid\/uid\u4fe1\u606f<\/code><\/td><td><\/td><\/tr><tr><td><code>-L<\/code><\/td><td><code>Always follow symbol link in SRC_PATH<\/code><\/td><td><code>??<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>3.3 <code>docker difff CONTAINER \/\/ \u67e5\u770b\u5bb9\u5668\u4e2d\u88ab\u4fee\u6539\u8fc7\u7684\u6587\u4ef6\u6216\u76ee\u5f55<\/code><br><code>\u8bf4\u660e:C - Change, D - Delete, A - Add<\/code><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">4. \u5bb9\u5668\u751f\u547d\u5468\u671f\u7ba1\u7406<\/h5>\n\n\n\n<p>4.1 <code>docker start [options] container... \/\/\u542f\u52a8\u4e00\u4e2a\u6216\u591a\u4e2a\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-a<\/code><\/td><td><code>\u542f\u52a8\u540e\u8fdb\u5165\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><tr><td><code>--detach-keys string<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>-i<\/code><\/td><td><code>Attach container's STDIN<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.2 <code>docker stop [options] container... \/\/\u505c\u6b62\u4e00\u4e2a\u6216\u591a\u4e2a\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-t int<\/code><\/td><td><code>\u591a\u5c11\u79d2\u540e\u505c\u6b62\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.3 <code>docker restart [options] container... \/\/\u91cd\u542f\u4e00\u4e2a\u6216\u591a\u4e2a\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-t int<\/code><\/td><td><code>\u591a\u5c11\u79d2\u540e\u91cd\u542f\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.4 <code>docker kill [options] container... \/\/ \u6740\u6b7b\u4e00\u4e2a\u6216\u591a\u4e2a\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-s string<\/code><\/td><td><code>\u7ed9\u5bb9\u5668\u53d1\u9001\u4e00\u4e2a\u4fe1\u53f7,\u9ed8\u8ba4\u4e3aKILL<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.5 <code>docker rm [options] container... \/\/\u5220\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u5bb9\u5668<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-f, -force<\/code><\/td><td><code>\u5f3a\u5236\u79fb\u9664\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><tr><td><code>-l, -link<\/code><\/td><td><code>\u5220\u9664\u6307\u5b9a\u7684\u8fde\u63a5<\/code><\/td><td><\/td><\/tr><tr><td><code>-v, -volumes<\/code><\/td><td><code>\u5220\u9664\u5bb9\u5668\u53ca\u5176\u6302\u8f7d\u7684\u5377<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.6 <code>docker pause container... \/\/ \u6682\u505c\u5bb9\u5668\u4e2d\u6240\u6709\u7684\u8fdb\u7a0b<\/code><\/p>\n\n\n\n<p>4.7 <code>docker unpause container... \/\/ \u6062\u590d\u5bb9\u5668\u4e2d\u6240\u6709\u7684\u8fdb\u7a0b<\/code><\/p>\n\n\n\n<p>4.8 <code>docker exec [options] container command [arg...] \u5728\u8fd0\u884c\u7684\u5bb9\u5668\u4e2d\u6267\u884c\u547d\u4ee4<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-d, --detach<\/code><\/td><td><code>\u5206\u79bb\u6a21\u5f0f, \u5728\u540e\u53f0\u8fd0\u884c<\/code><\/td><td><\/td><\/tr><tr><td><code>--detach-keys str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>-e, --env list<\/code><\/td><td><code>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/code><\/td><td><\/td><\/tr><tr><td><code>-i, --interactive<\/code><\/td><td><code>\u4fdd\u6301STDIN\u6253\u5f00<\/code><\/td><td><code>\u4e0e-t\u7ed3\u5408\u4f7f\u7528\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef<\/code><\/td><\/tr><tr><td><code>-t, --tty<\/code><\/td><td><code>\u5206\u914d\u4e00\u4e2a\u4f2a\u7ec8\u7aef<\/code><\/td><td><code>\u4e0e-i\u7ed3\u5408\u4f7f\u7528\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef<\/code><\/td><\/tr><tr><td><code>--privileged<\/code><\/td><td><code>Give extended privileges to the command<\/code><\/td><td><\/td><\/tr><tr><td><code>-u, --user str<\/code><\/td><td><code>\u6307\u5b9a\u7528\u6237\u540d\u6216\u7528\u6237ID<\/code><\/td><td><\/td><\/tr><tr><td><code>-w, --workdir str<\/code><\/td><td><code>\u5728\u6307\u5b9a\u6587\u4ef6\u76ee\u5f55\u4e0b\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4<\/code><\/td><td><code>-w \/home container ls<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.9 <code>docker run [optoins] image [command] [arg...] \/\/ \u8fd0\u884c\u4e00\u4e2a\u65b0\u5bb9\u5668\u4e2d\u6267\u884c\u4e00\u4e2a\u547d\u4ee4<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>--add-host list<\/code><\/td><td><code>\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7684host-ip\u6620\u5c04(host:ip)<\/code><\/td><td><\/td><\/tr><tr><td><code>-a,<\/code><br><code>--attach list<\/code><\/td><td><code>\u5c06\u5bb9\u5668\u7684stdin,stdout,stderr\u3010\u6807\u51c6\u8f93\u5165\uff0c\u6807\u51c6\u8f93\u51fa\uff0c\u9519\u8bef\u8f93\u51fa\u3011\u5173\u8054\u5230\u672c\u5730shell\u4e2d\uff0c\u5728\u6267\u884cdocker run\u65f6\uff0c\u5c06\u6240\u6709\u8f93\u5165\u8f93\u51fa\u6307\u5b9a\u5230\u672c\u5730shell\u4e2d\uff0c\u82e5\u6267\u884c\u65f6\u643a\u5e26\u6b64\u53c2\u6570\uff0c\u53ef\u4ee5\u6307\u5b9a\u5c06stdin,stdout,stderr\u7684\u67d0\u4e00\u4e2a\u6216\u67d0\u51e0\u4e2a\u5173\u8054\u5230\u672c\u5730shell<\/code><\/td><td><\/td><\/tr><tr><td><code>--blkio-weight uint16<\/code><\/td><td><code>\u9650\u5236\u5bb9\u5668\u8bfb\u5199\u6743\u91cd\uff0c\u5f53\u5bbf\u4e3b\u673a\u67091\u4e2a\u4ee5\u4e0a\u5bb9\u5668\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u5bb9\u5668\u7684\u8bfb\u5199\u4f18\u5148\u6743\uff0c\u6743\u91cd\u503c\u572810\uff5e1000\u4e4b\u95f4\uff0c0\u4e3a\u5173\u95ed\u6743\u91cd(\u9ed8\u8ba4)<\/code><\/td><td><\/td><\/tr><tr><td><code>--blkio-weight-device list<\/code><\/td><td><code>\u8bbe\u7f6e\u9488\u5bf9\u6307\u5b9a\u8bbe\u5907\u7684\u6743\u91cd\uff0c\u6743\u91cd\u503c\u572810\uff5e1000\u4e4b\u95f4\uff0c\u4e14\u4f18\u5148\u7ea7\u9ad8\u4e8eblkio.weight<\/code><\/td><td><code>--blkio-weight-device \"\/dev\/sda:100\" ubuntu:latest<\/code><\/td><\/tr><tr><td><code>--cap-add list<\/code><\/td><td><code>\u589e\u5f3alinux\u80fd\u529b\uff0c\u5728docker\u5bb9\u5668\u5185\u9650\u5236\u4e86\u5927\u90e8\u5206\u7684linux\u80fd\u529b\uff0c\u5728\u4e4b\u524d\uff0c\u9700\u8981\u5f00\u542f\u8fd9\u4e9b\u529f\u80fd\u9700\u8981\u7ed3\u5408--privileged\u5f00\u542f\u7279\u6743\u6a21\u5f0f\u624d\u80fd\u4f7f\u7528\u8fd9\u4e9b\u53c2\u6570\uff0c\u8003\u8651\u5230\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u901a\u8fc7\u8be5\u53c2\u6570\u6765\u5f00\u542f\u6307\u5b9a\u7684linux\u529f\u80fd\u3010\u9ed8\u8ba4\u5f00\u542f\u7684\u529f\u80fd\u53ca\u5168\u90e8\u5b9a\u4e49\u8be6\u89c1docker runc\u3011\uff0c\u82e5\u53c2\u6570\u4e3aall\u5219\u9ed8\u8ba4\u5f00\u542f\u6240\u6709linux\u80fd\u529b<\/code><\/td><td><\/td><\/tr><tr><td><code>--cap-drop list<\/code><\/td><td><code>\u79fb\u9664linux\u80fd\u529b<\/code><\/td><td><\/td><\/tr><tr><td><code>--cgroup-parent str<\/code><\/td><td><code>\u914d\u7f6e\u5bb9\u5668\u7684\u63a7\u5236\u7ec4\uff0c\u7ee7\u627f\u8be5\u63a7\u5236\u7ec4\u7684\u8d44\u6e90\u9650\u5236\u6a21\u5f0f\u3002<\/code><\/td><td><\/td><\/tr><tr><td><code>--cidfile str<\/code><\/td><td><code>\u521b\u5efa\u4e00\u4e2a\u5bb9\u5668\uff0c\u5e76\u5c06\u8be5\u5bb9\u5668\u7684id\u8f93\u51fa\u5230\u67d0\u4e00\u6587\u4ef6\u4e2d\uff0c\u82e5\u8be5\u6587\u4ef6\u5b58\u5728\uff0c\u5219\u4f1a\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpu-period int<\/code><\/td><td><code>\u4e0e\u53c2\u6570--cpu-quota\u914d\u5408\u4f7f\u7528\uff0c\u7528\u4e8e\u8bbe\u5b9acpu\u4ece\u65b0\u5206\u914d\u8d44\u6e90\u7684\u65f6\u95f4\u5468\u671f,\u65f6\u95f4\u5468\u671f\u7ed3\u675f\u540e\uff0c\u4f1a\u5bf9cpu\u8fdb\u884c\u91cd\u65b0\u5206\u914d<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpu-quota int<\/code><\/td><td><code>\u4e0e\u53c2\u6570--cpu-period\u914d\u5408\u4f7f\u7528\uff0c\u7528\u4e8e\u8bbe\u5b9a\u8be5\u5bb9\u5668\u5728\u8d44\u6e90\u5206\u914d\u5468\u671f\u5185\u5360\u7528cpu\u7684\u65f6\u95f4\uff0c\u82e5\u5bb9\u5668\u8bbe\u5b9a--cpu-quota=1000000 --cpu-period=500000\uff0c\u5219\u8be5\u5bb9\u5668\u5728\u8fd9\u4e2a\u65f6\u95f4\u5468\u671f\u5185\u6743\u91cd\u4e3a50%\uff0c\u8fd9\u4e24\u4e2a\u53c2\u6570\u4e3b\u8981\u662f\u63d0\u5347\u5bbf\u4e3b\u673a\u5185\u67d0\u4e00\u5bb9\u5668\u7684\u6743\u91cd\u6bd4\uff0c\u53ef\u4ee5\u7528\u6765\u89e3\u51b3\u5bbf\u4e3b\u673a\u5185\u82e5\u5e72\u5bb9\u5668\u7684\u8d44\u6e90\u62a2\u5360\u5bfc\u81f4\u91cd\u8981\u5bb9\u5668cpu\u6027\u80fd\u4e0d\u8db3\u7684\u573a\u666f\u3002\u8be5\u6a21\u5f0f\u5e94\u7528\u4e8eLinux \u7684CFS\u6a21\u5f0f<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpu-rt-period int<\/code><\/td><td><code>--cpu-period\u7684\u5fae\u79d2\u7248<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpu-rt-runtime int<\/code><\/td><td><code>\u5728\u4e00\u4e2acpu\u8d44\u6e90\u5206\u914d\u5468\u671f\u5185\uff0c\u4f18\u5148\u4fdd\u8bc1\u67d0\u5bb9\u5668\u7684cpu\u4f7f\u7528\u7684\u6700\u5927\u5fae\u79d2\u6570\u3002\u4f8b\u5982\uff0c\u9ed8\u8ba4\u5468\u671f\u4e3a 1000000 \u5fae\u79d2\uff081\u79d2\uff09\uff0c\u8bbe\u7f6e --cpu-rt-runtime=950000 \u53ef\u786e\u4fdd\u4f7f\u7528\u5b9e\u65f6\u8c03\u5ea6\u7a0b\u5e8f\u7684\u5bb9\u5668\u6bcf 1000000 \u5fae\u79d2\u53ef\u8fd0\u884c 950000 \u5fae\u79d2\uff0c\u5e76\u4fdd\u7559\u81f3\u5c11 50000 \u5fae\u79d2\u7528\u4e8e\u975e\u5b9e\u65f6\u4efb\u52a1<\/code><\/td><td><\/td><\/tr><tr><td><code>-c, --cpu-shares int<\/code><\/td><td><code>CPU\u4efd\u989d(\u76f8\u5bf9\u6743\u91cd),\u9ed8\u8ba4\u4e3a0<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpus decimal<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u4f7f\u7528cpu\u7684\u6570\u91cf<\/code><\/td><td><code>--cpus=\".5\" ubuntu:latest<\/code><\/td><\/tr><tr><td><code>--cpuset-cpus str<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u5141\u8bb8\u5728\u54ea\u4e2acpu\u4e0a\u6267\u884c\u8be5\u8fdb\u7a0b\uff0c\u8b6c\u5982--cpuset-cpus=\"1,3\"\u4e3a\u6307\u5b9a\u5728cpu 1 \u548ccpu 3\u4e0a\u6267\u884c\uff0c--cpuset-cpus=\"0-2\"\u4e3a\u6307\u5b9a\u5728cpu0,cpu1,cpu2\u4e0a\u6267\u884c<\/code><\/td><td><code>--cpuset-cpus=\"1,3\"<\/code><\/td><\/tr><tr><td><code>--cpuset-mems str<\/code><\/td><td><code>\u540c\u53c2\u6570--cpuset-cpus\uff0c\u4f46\u8be5\u53c2\u6570\u662f\u4f5c\u7528\u4e8eNUMA \u67b6\u6784\u7684 CPU<\/code><\/td><td><\/td><\/tr><tr><td><code>-d, --detach<\/code><\/td><td><code>\u540e\u53f0\u8fd0\u884c\u5bb9\u5668\u5e76\u8fd4\u56de\u5bb9\u5668ID<\/code><\/td><td><\/td><\/tr><tr><td><code>--detach-keys str<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u7684\u952e\u76d8\u6620\u5c04\u952e\u4f4d\uff0c\u5728\u5bb9\u5668\u88ab\u94fe\u63a5\u5230\u524d\u53f0\u65f6\uff0c\u82e5\u5bbf\u4e3b\u673a\u7684\u952e\u76d8\u952e\u4f4d\u4e0e\u5bb9\u5668\u952e\u4f4d\u51b2\u7a81\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u6307\u4ee4\u5bf9\u5bb9\u5668\u7684\u952e\u4f4d\u8fdb\u884c\u91cd\u65b0\u6620\u5c04<\/code><\/td><td><\/td><\/tr><tr><td><code>--device list<\/code><\/td><td><code>\u5411\u5bb9\u5668\u4e2d\u6dfb\u52a0\u4e3b\u673a\u8bbe\u5907<\/code><\/td><td><\/td><\/tr><tr><td><code>--device-cgroup-rule list<\/code><\/td><td><code>\u5c06\u5bbf\u4e3b\u673a\u7684\u8bbe\u5907\u6dfb\u52a0\u5230cgroup\u89c4\u5219\u5217\u8868\u4e2d<\/code><\/td><td><\/td><\/tr><tr><td><code>--device-read-bps list<\/code><\/td><td><code>\u9650\u5236\u8bbe\u5907\u7684\u8bfb\u53d6\u901f\u7387(\u6bcf\u79d2\u5b57\u8282\u6570)<\/code><\/td><td><\/td><\/tr><tr><td><code>--device-read-iops list<\/code><\/td><td><code>\u9650\u5236\u8bbe\u5907\u7684\u8bfb\u53d6\u901f\u7387(\u6bcf\u79d2IO\u64cd\u4f5c\u6b21\u6570)<\/code><\/td><td><\/td><\/tr><tr><td><code>--device-write-bps list<\/code><\/td><td><code>\u9650\u5236\u8bbe\u5907\u7684\u5199\u901f\u7387(\u6bcf\u79d2\u5b57\u8282\u6570)<\/code><\/td><td><\/td><\/tr><tr><td><code>--device-write-iops list<\/code><\/td><td><code>\u9650\u5236\u8bbe\u5907\u7684\u5199\u901f\u7387(\u6bcf\u79d2IO\u64cd\u4f5c\u6b21\u6570)<\/code><\/td><td><\/td><\/tr><tr><td><code>--disable-content-trust<\/code><\/td><td><code>\u5ffd\u7565\u955c\u50cf\u7684\u6821\u9a8c(\u9ed8\u8ba4\u4e3atrue)<\/code><\/td><td><\/td><\/tr><tr><td><code>--dns list<\/code><\/td><td><code>\u6307\u5b9a\u5bb9\u5668\u4f7f\u7528\u7684DNS\u670d\u52a1\u5668,\u9ed8\u8ba4\u4e0e\u4e3b\u673a\u4e00\u81f4<\/code><\/td><td><\/td><\/tr><tr><td><code>--dns-option list<\/code><\/td><td><code>\u8bbe\u7f6eDNS\u9009\u9879\uff0c\u540c\u4fee\u6539\/etc\/resolv.conf\u6587\u4ef6<\/code><\/td><td><\/td><\/tr><tr><td><code>--dns-search list<\/code><\/td><td><code>\u6307\u5b9a\u5bb9\u5668DNS\u641c\u7d22\u57df\u540d,\u9ed8\u8ba4\u4e0e\u4e3b\u673a\u4e00\u81f4<\/code><\/td><td><\/td><\/tr><tr><td><code>-entrypoint str<\/code><\/td><td><code>\u8986\u76d6\u6620\u50cf\u9ed8\u8ba4\u7684entrypoint<\/code><\/td><td><\/td><\/tr><tr><td><code>-e, --env list<\/code><\/td><td><code>\u7ed9\u5bb9\u5668\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/code><\/td><td><\/td><\/tr><tr><td><code>--env-file list<\/code><\/td><td><code>\u4ece\u6307\u5b9a\u6587\u4ef6\u8bfb\u53d6\u73af\u5883\u53d8\u91cf<\/code><\/td><td><\/td><\/tr><tr><td><code>--expose list<\/code><\/td><td><code>\u5f00\u653e\u4e00\u4e2a\u6216\u591a\u4e2a\u7aef\u53e3<\/code><\/td><td><\/td><\/tr><tr><td><code>--group-add list<\/code><\/td><td><code>\u4e3a\u5bb9\u5668\u6dfb\u52a0\u7528\u6237\u7ec4<\/code><\/td><td><\/td><\/tr><tr><td><code>--health-cmd str<\/code><\/td><td><code>\u6267\u884c\u4e00\u4e2a\u5065\u5eb7\u68c0\u67e5\u547d\u4ee4<\/code><\/td><td><\/td><\/tr><tr><td><code>--health-interval duration<\/code><\/td><td><code>\u914d\u5408--health-cmd\u53c2\u6570\uff0c\u8bbe\u7f6e\u5065\u5eb7\u68c0\u67e5\u7684\u6267\u884c\u7684\u95f4\u9694\u65f6\u95f4\uff08ms \/s \/ m \/ h\uff09<\/code><\/td><td><\/td><\/tr><tr><td><code>--health-retries int<\/code><\/td><td><code>\u914d\u5408--health-cmd\u53c2\u6570\uff0c\u8bbe\u7f6e\u5065\u5eb7\u68c0\u67e5\u547d\u4ee4\u5931\u8d25\u91cd\u8bd5\u7684\u6b21\u6570<\/code><\/td><td><\/td><\/tr><tr><td><code>--health-statr-period duration<\/code><\/td><td><code>\u914d\u5408--health-cmd\u53c2\u6570\uff0c\u8bbe\u7f6e\u5065\u5eb7\u68c0\u67e5\u7684\u542f\u52a8\u65f6\u95f4\uff08ms \/s \/ m \/ h\uff09<\/code><\/td><td><\/td><\/tr><tr><td><code>--health-timout<\/code><\/td><td><code>\u914d\u5408--health-cmd\u53c2\u6570\uff0c\u8bbe\u7f6e\u5065\u5eb7\u68c0\u67e5\u547d\u4ee4\u8d85\u65f6\u65f6\u95f4\uff08ms \/s \/ m \/ h\uff09<\/code><\/td><\/tr><tr><td><code>-h, --hostname str<\/code><\/td><td><code>\u6307\u5b9a\u5bb9\u5668\u7684hostname<\/code><\/td><td><\/td><\/tr><tr><td><code>--init<\/code><\/td><td><code>\u5728\u5bb9\u5668\u4e2d\u65b0\u589e\u4e00\u4e2a\u5b88\u62a4\u8fdb\u7a0b\uff0c\u6765\u9884\u9632\u8be5\u5bb9\u5668\u51fa\u73b0\u50f5\u5c38\u8fdb\u7a0b\u7684\u53ef\u80fd\u6027<\/code><\/td><td><\/td><\/tr><tr><td><code>-i, --interactive<\/code><\/td><td><code>\u4ee5\u4ea4\u4e92\u6a21\u5f0f\u8fd0\u884c\u5bb9\u5668,\u5e38\u4e0e-t\u540c\u65f6\u4f7f\u7528<\/code><\/td><td><\/td><\/tr><tr><td><code>--ip str<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u7684IPv4\u5730\u5740<\/code><\/td><td><\/td><\/tr><tr><td><code>--ip6 str<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u7684IPv6\u5730\u5740<\/code><\/td><td><\/td><\/tr><tr><td><code>--ipc str<\/code><\/td><td><code>\u4f7f\u7528IPC\u6a21\u5f0f<\/code><\/td><td><\/td><\/tr><tr><td><code>--isolation str<\/code><\/td><td><code>\u4f7f\u7528\u5bb9\u5668\u9694\u79bb, \u8be5\u53c2\u6570\u62e5\u6709\u4e09\u4e2a\u503c&lt;br&gt;(1)default \u5373\u4e0e\u4f7f\u7528dockerd --exec-opt\u7684\u53c2\u6570\u9ed8\u8ba4\u6548\u679c\u76f8\u540c&lt;br&gt;(2)process \u4f7f\u7528linux\u5185\u6838\u547d\u540d\u7a7a\u95f4\u8fdb\u884c\u9694\u79bb\uff0c\u8be5\u53c2\u6570\u4e0d\u652f\u6301windows\u73af\u5883\u3002&lt;br&gt;\uff083\uff09\u4f7f\u7528\u5fae\u8f6f\u7684Hyper-V\u865a\u62df\u6280\u672f\u8fdb\u884c\u9694\u79bb\uff0c\u8be5\u53c2\u6570\u4ec5\u9650windows\u73af\u5883<\/code><\/td><td><\/td><\/tr><tr><td><code>--kernel-memory bytes<\/code><\/td><td><code>\u9650\u5236\u8be5\u5bb9\u5668\u5185\u6838\u7684\u5185\u5b58\u4f7f\u7528<\/code><\/td><td><\/td><\/tr><tr><td><code>-l, --label list<\/code><\/td><td><code>\u8bbe\u7f6e\u8be5\u5bb9\u5668\u7684\u5143\u6570\u636e<\/code><\/td><td><\/td><\/tr><tr><td><code>--label-file list<\/code><\/td><td><code>\u901a\u8fc7\u672c\u5730\u6587\u4ef6\u5bfc\u5165\u5143\u6570\u636e\u81f3\u8be5\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><tr><td><code>--link list<\/code><\/td><td><code>\u6307\u5b9a\u5bb9\u5668\u95f4\u7684\u5173\u8054\uff0c\u4f7f\u7528\u5176\u4ed6\u5bb9\u5668\u7684IP\u3001env\u7b49\u4fe1\u606f<\/code><\/td><td><\/td><\/tr><tr><td><code>--link-local-ip list<\/code><\/td><td><code>\u5bb9\u5668IPv4\/IPv6\u94fe\u8def\u672c\u5730\u5730\u5740<\/code><\/td><td><\/td><\/tr><tr><td><code>--log-driver str<\/code><\/td><td><code>\u8bbe\u7f6e\u65e5\u5fd7\u5de5\u5177\uff0c\u7528\u4e8e\u52a8\u6001\u6536\u96c6\u65e5\u5fd7<\/code><\/td><td><\/td><\/tr><tr><td><code>--log-opt list<\/code><\/td><td><code>\u914d\u5408\u53c2\u6570--log-driver\u4f7f\u7528\uff0c\u7528\u4e8e\u65e5\u5fd7\u914d\u7f6e<\/code><\/td><td><\/td><\/tr><tr><td><code>--mac-address str<\/code><\/td><td><code>\u8bbe\u7f6e\u8be5\u5bb9\u5668mac\u5730\u5740<\/code><\/td><td><\/td><\/tr><tr><td><code>-m, --memory bytes<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u4f7f\u7528\u7684\u6700\u5927\u5185\u5b58<\/code><\/td><td><\/td><\/tr><tr><td><code>--memory-reservation bytes<\/code><\/td><td><code>\u8f6f\u9650\u5236\u8be5\u5bb9\u5668\u7684\u5185\u5b58\u4f7f\u7528\uff0c\u5f53\u5bbf\u4e3b\u673a\u5185\u5b58\u7a7a\u95f2\u65f6\uff0c\u8be5\u5bb9\u5668\u7684\u5185\u5b58\u4f7f\u7528\u53ef\u4ee5\u4e00\u5b9a\u6bd4\u4f8b\u8d85\u51fa\u9650\u5236\uff0c\u4f46\u5f53\u5bbf\u4e3b\u673a\u5185\u5b58\u7d27\u5f20\u65f6\uff0c\u4f1a\u5f3a\u5236\u8be5\u5bb9\u5668\u5185\u5b58\u4f7f\u7528\u9650\u5236\u5728\u8be5\u53c2\u6570\u4e4b\u5185<\/code><\/td><td><\/td><\/tr><tr><td><code>--memory-swap bytes<\/code><\/td><td><code>\u5185\u5b58\u4ea4\u6362\u5206\u533a\u5927\u5c0f\u9650\u5236\u3002\u914d\u5408\u53c2\u6570--memory\u4f7f\u7528\uff0c\u4e14\u6700\u5c0f\u5185\u5b58\u4ea4\u6362\u9650\u5236\u5e94\u8be5\u5927\u4e8e\u5185\u5b58\u9650\u5236\u3002\u8be5\u53c2\u6570\u67094\u79cd\u60c5\u51b5:&lt;br&gt; (1)\u4e0d\u8bbe\u7f6e--memory\u4e0e\u8be5\u53c2\u6570:\u5219\u8be5\u5bb9\u5668\u9ed8\u8ba4\u53ef\u4ee5\u7528\u5b8c\u5bbf\u820d\u673a\u7684\u6240\u6709\u5185\u5b58\u548c \u5bbf\u4e3b\u673a swap \u5206\u533a\u3002&lt;br&gt; (2)\u8bbe\u7f6e--memory 50MB \u4e0d\u8bbe\u7f6e--memory-swap\uff08\u9ed8\u8ba4\u4e3a0\uff09:\u5219--memory-swap\u503c\u7b49\u4e8e\u9650\u5236\u5185\u5b58\u5927\u5c0f\uff0c\u5373\u8be5\u5bb9\u5668\u80fd\u591f\u7533\u8bf7\u7684\u6700\u5927\u5185\u5b58\u4e3a100MB\u3002&lt;br&gt; (3)\u8bbe\u7f6e--memory 50MB --memory-swap\u4e3a-1:\u5219\u8be5\u5bb9\u5668\u6700\u5927\u53ef\u4ee5\u7533\u8bf7\u7684\u5185\u5b58\u4e3a50MB+\u5bbf\u4e3b\u673aswap\u5206\u533a\u5927\u5c0f &lt;br&gt; (4)\u8bbe\u7f6e--memory 50MB --memory-swap 100MB:\u5219\u8be5\u5bb9\u5668\u53ef\u4ee5\u7533\u8bf7\u7684\u6700\u5927\u5185\u5b58\u4e3a100MB-50MB=50MB<\/code><\/td><td><\/td><\/tr><tr><td><code>--memory-swappiness int<\/code><\/td><td><code>\u7528\u4e8e\u8c03\u6574\u865a\u62df\u5185\u5b58\u7684\u63a7\u5236\u884c\u4e3a\uff0c\u4e3a0\uff5e100\u4e4b\u95f4\u7684\u6574\u6570\u3002\u5728linux\u5185\u5b58\u7ba1\u7406\u4e2d\uff0c\u5c06\u5185\u5b58\u4e2d\u4e0d\u6d3b\u8dc3\u7684\u9875\u4ea4\u6362\u81f3\u786c\u76d8\u4e2d\uff0c\u4ee5\u7f13\u89e3\u5185\u5b58\u7d27\u5f20\uff0c\u8be5\u53c2\u6570\u8bbe\u7f6e\u4e3a0\u5219\u8ba4\u5b9a\u8be5\u5bb9\u5668\u6240\u6709\u5185\u5b58\u4e2d\u7684\u5185\u5bb9\u5747\u4e0d\u5141\u8bb8\u4ea4\u6362\u81f3\u786c\u76d8\uff0c\u7528\u4ee5\u4fdd\u969c\u6700\u5927\u6027\u80fd\uff0c\u82e5\u8bbe\u7f6e\u4e3a100\uff0c\u5219\u8ba4\u4e3a\u8be5\u5bb9\u5668\u6240\u6709\u5185\u5b58\u4e2d\u7684\u6570\u636e\u5747\u53ef\u4ee5\u4ea4\u6362\u81f3\u786c\u76d8\u3002<\/code><\/td><td><\/td><\/tr><tr><td><code>--mount mount<\/code><\/td><td><code>\u5c06\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5230\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><tr><td><code>--name str<\/code><\/td><td><code>\u4e3a\u5bb9\u5668\u6307\u5b9a\u4e00\u4e2a\u540d\u79f0<\/code><\/td><td><\/td><\/tr><tr><td><code>--network str<\/code><\/td><td><code>\u5c06\u5bb9\u5668\u8fde\u63a5\u5230\u7f51\u7edc\uff0c\u652f\u6301bridge\/host\/none\/container\u56db\u79cd\u7c7b\u578b<\/code><\/td><td><\/td><\/tr><tr><td><code>--network-alias list<\/code><\/td><td><code>\u8bbe\u7f6e\u8be5\u5bb9\u5668\u5728\u7f51\u7edc\u4e0a\u7684\u522b\u540d<\/code><\/td><td><\/td><\/tr><tr><td><code>--no-healthcheck<\/code><\/td><td><code>\u7981\u6b62\u4e00\u5207\u5065\u5eb7\u68c0\u67e5\u884c\u4e3a<\/code><\/td><td><\/td><\/tr><tr><td><code>--oom-kill-disable<\/code><\/td><td><code>\u8bbe\u7f6e\u662f\u5426\u7981\u6b62oom kill\u884c\u4e3a\uff0c\u82e5\u8be5\u5bb9\u5668\u56e0\u4e3a\u9700\u8981\u5927\u91cf\u8bf7\u6c42\u5185\u5b58\uff0c\u5bfc\u81f4\u5bbf\u4e3b\u673a\u5185\u5b58\u4e0d\u8db3\u6216\u89e6\u53d1\u5230\u5185\u5b58\u9650\u5236\uff0c\u5bfc\u81f4\u6740\u6b7b\u8be5\u5bb9\u5668\u8fdb\u7a0b\uff0c\u82e5\u8bbe\u7f6e\u8be5\u53c2\u6570\u4e3atrue\u5219\u4f1a\u5173\u95ed\u8fd9\u4e2a\u68c0\u67e5<\/code><\/td><td><\/td><\/tr><tr><td><code>--oom-score-adj int<\/code><\/td><td><code>\u8c03\u6574\u4e3b\u673a\u7684OOM\u9996\u9009\u9879\uff08\u4ece-1000\u52301000\uff09\u6b64\u5904\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u975e\u4e13\u4e1a\u4eba\u58ebdocker\u5b98\u65b9\u662f\u4e0d\u5efa\u8bae\u7528\u6237\u4fee\u6539--oom-score-adj--oom-kill-disable\u8fd9\u4e24\u4e2a\u53c2\u6570\u7684<\/code><\/td><td><\/td><\/tr><tr><td><code>--pid string<\/code><\/td><td><code>\u8bbe\u7f6e\u8be5\u5bb9\u5668\u7684pid<\/code><\/td><td><\/td><\/tr><tr><td><code>--pids-limit int<\/code><\/td><td><code>\u9650\u5236\u8be5\u5bb9\u5668\u6240\u80fd\u521b\u5efa\u7684\u6700\u5927\u8fdb\u7a0b\u6570\u3002\u9ed8\u8ba4-1\u4e0d\u9650\u5236<\/code><\/td><td><\/td><\/tr><tr><td><code>--privileged<\/code><\/td><td><code>\u5728\u8be5\u5bb9\u5668\u4e0a\u5f00\u542f\u7279\u6743\u6a21\u5f0f\uff0c\u8ba9\u8be5\u5bb9\u5668\u62e5\u6709\u6240\u6709\u7684linux\u80fd\u529b<\/code><\/td><td><\/td><\/tr><tr><td><code>-p, --publish list<\/code><\/td><td><code>\u5c06\u5bb9\u5668\u7684\u7aef\u53e3\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u4e0a<\/code><\/td><td><code>docker run -p 8000:8000 ubuntu<\/code><\/td><\/tr><tr><td><code>--publish-all<\/code><\/td><td><code>\u5c06\u8be5\u5bb9\u5668\u7684\u6240\u6709\u7aef\u53e3\u5747\u968f\u673a\u6620\u5c04\u81f3\u5bbf\u4e3b\u673a<\/code><\/td><td><\/td><\/tr><tr><td><code>--read-only<\/code><\/td><td><code>\u8bbe\u7f6e\u8be5\u5bb9\u5668\u53ea\u8bfb<\/code><\/td><td><\/td><\/tr><tr><td><code>--restart str<\/code><\/td><td><code>\u5728\u9000\u51fa\u8be5\u5bb9\u5668\u65f6\u91cd\u542f\u8be5\u5bb9\u5668,\u9ed8\u8ba4\u4e3ano<\/code><\/td><td><\/td><\/tr><tr><td><code>--rm<\/code><\/td><td><code>\u5f53\u5bb9\u5668\u9000\u51fa\u65f6\u81ea\u52a8\u5220\u9664\u5b83<\/code><\/td><td><\/td><\/tr><tr><td><code>--runtime str<\/code><\/td><td><code>\u6307\u5b9a\u8be5\u5bb9\u5668\u5173\u8054\u4e00\u4e2aruntime\u7684\u5bb9\u5668\uff0c\u5728\u4f7f\u7528\u8be5\u53c2\u6570\u65f6\u6ce8\u610fruntime specified\u5fc5\u987b\u5728dockerd --add-runtime\u6ce8\u518c\u8fc7<\/code><\/td><td><\/td><\/tr><tr><td><code>--security-opt list<\/code><\/td><td><code>\u8bbe\u7f6e\u5b89\u5168\u5c5e\u6027\uff0c\u5728windows\u4e0a\u4f7f\u7528CredentialSpec\u6a21\u5757\u6765\u6267\u884c\u8eab\u4efd\u8bc6\u522b<\/code><\/td><td><\/td><\/tr><tr><td><code>--shm-size bytes<\/code><\/td><td><code>\u8bbe\u7f6e\/dev\/shm\/\u76ee\u5f55\u7684\u5927\u5c0f<\/code><\/td><td><\/td><\/tr><tr><td><code>--sig-proxy<\/code><\/td><td><code>\u4ee3\u7406\u8fdb\u7a0b\u6240\u63a5\u6536\u7684\u6240\u6709\u5b57\u7b26,\u5f53\u6307\u5b9a--sig-proxy=false\u65f6\uff0cctrl+c\u548cctrl+d \u4e0d\u4f1a\u4f20\u9012\u4fe1\u53f7\u7ed9docker\u8fdb\u7a0b\u800c\u5173\u95ed\u5bb9\u5668,\u9ed8\u8ba4\u4e3atrue<\/code><\/td><td><\/td><\/tr><tr><td><code>--stop-signal str<\/code><\/td><td><code>\u505c\u6b62\u5e26\u6709\u4fe1\u53f7\u7684\u5bb9\u5668\uff0c\u5728linux\u73af\u5883\u4e0b\u8f93\u5165kill -l,\u5c31\u53ef\u4ee5\u770b\u5230\u6240\u6709\u4fe1\u53f7\u540d\u79f0\uff0c\u53ef\u4ee5\u6307\u5b9a\u5bb9\u5668\u53d1\u51fa\u67d0\u79cd\u4fe1\u53f7\u65f6\u505c\u6b62\u8be5\u5bb9\u5668\uff0c\u8b6c\u5982SIGKILL,\u9ed8\u8ba4\u4e3aSIGTERM<\/code><\/td><td><\/td><\/tr><tr><td><code>--stop-timeout int<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u8c03\u7528\u547d\u4ee4\u8d85\u65f6\u540e\u81ea\u52a8\u9000\u51fa\u3002\u8be5\u53c2\u6570\u53ef\u4ee5\u8bbe\u7f6e\u5bb9\u5668\u5728\u8c03\u7528\u547d\u4ee4\u65f6\u5bfc\u81f4\u8d85\u65f6\u540e\u591a\u5c11\u79d2\u9000\u51fa\uff0c0(\u9ed8\u8ba4)\u4e3a\u6c38\u8fdc\u4e0d\u9000\u51fa\uff0c\u8be5\u53c2\u6570\u5355\u4f4d\u4e3a\u79d2<\/code><\/td><td><\/td><\/tr><tr><td><code>--storage-opt list<\/code><\/td><td><code>\u5bb9\u5668\u7684\u5b58\u50a8\u8bbe\u7f6e,\u53ef\u4ee5\u5206\u522b\u6307\u5b9adm.basesize\u3001dm.loopdatasize\u3001dm.loopmetadatasize\u7b49\u9879<\/code><\/td><td><code>--storage-opt dm.basesize=20G<\/code><\/td><\/tr><tr><td><code>--sysctl map<\/code><\/td><td><code>\u5185\u6838\u53c2\u6570\uff0c\u5bf9\u5e94\u4fee\u6539\u5bb9\u5668\u4e2d\u7684\/etc\/sysctl.conf\u6587\u4ef6<\/code><\/td><td><\/td><\/tr><tr><td><code>--tmpfs list<\/code><\/td><td><code>\u6307\u5b9a\u6302\u8f7d\u4e00\u4e2atmpfs\u76ee\u5f55\uff0ctmpfs\u662f\u4e00\u79cd\u865a\u62df\u5185\u5b58\u6587\u4ef6\u7cfb\u7edf\u3002<\/code><\/td><td><\/td><\/tr><tr><td><code>-t, -tty<\/code><\/td><td><code>\u6253\u5f00\u4e00\u4e2a\u4f2a\u7ec8\u7aef,\u5e38\u4e0e-i\u540c\u65f6\u4f7f\u7528<\/code><\/td><td><\/td><\/tr><tr><td><code>--ulimit ulimit<\/code><\/td><td><code>\u8bbe\u7f6e\u5bb9\u5668\u7684ulimit\u9009\u9879<\/code><\/td><td><\/td><\/tr><tr><td><code>-u, --user str<\/code><\/td><td><code>\u7528\u6237\u540d\u6216UID<\/code><\/td><td><\/td><\/tr><tr><td><code>--userns str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--uts str<\/code><\/td><td><code>\u4f7f\u7528uts\u547d\u540d\u7a7a\u95f4<\/code><\/td><td><\/td><\/tr><tr><td><code>-v, --volume list<\/code><\/td><td><code>\u5728\u8be5\u5bb9\u5668\u4e0b\u6302\u8f7d\u5377<\/code><\/td><td><\/td><\/tr><tr><td><code>--volume-driver str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--volumes-from list<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>-w, --workdir str<\/code><\/td><td><code>\u6307\u5b9a\u5bb9\u5668\u7684\u5de5\u4f5c\u76ee\u5f55<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>4.10 <code>docker create [optoins] image [command] [arg...] \/\/ \u521b\u5efa\u4e00\u4e2a\u65b0\u5bb9\u5668<\/code><br><strong>\u53c2\u6570 \u540crun<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">5. \u955c\u50cf\u7ba1\u7406<\/h5>\n\n\n\n<p>5.1 <code>docker images [options] [repository[:tag]] \/\/\u5217\u51fa\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-a &lt;br&gt;--all<\/code><\/td><td><code>\u5217\u51fa\u6240\u6709\u955c\u50cf<\/code><\/td><td><\/td><\/tr><tr><td><code>--digests<\/code><\/td><td><code>\u663e\u793a\u6458\u8981\u4fe1\u606f(sha256)<\/code><\/td><td><\/td><\/tr><tr><td><code>-f &lt;br&gt; --filter filter<\/code><\/td><td><code>\u8fc7\u6ee4<\/code><\/td><td><\/td><\/tr><tr><td><code>--format str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--no-trunc<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>-q &lt;br&gt;--quiet<\/code><\/td><td><code>\u4ec5\u663e\u793aID<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>5.2 <code>docker rmi [options] image...\/\/\u5220\u9664\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-f &lt;br&gt; --force<\/code><\/td><td><code>\u5f3a\u5236\u5220\u9664<\/code><\/td><td><\/td><\/tr><tr><td><code>--no-prune<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>5.4 <code>docker tag src_image[:tag] tar_image[:tag] \/\/ \u521b\u5efa\u67d0\u4e2a\u955c\u50cf\u7684\u526f\u672c<\/code><\/p>\n\n\n\n<p>5.5 <code>docker history [options] image \/\/\u67e5\u770b\u6307\u5b9a\u955c\u50cf\u7684\u521b\u5efa\u5386\u53f2\u3002<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>--format str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>-H &lt;br&gt; --human<\/code><\/td><td><code>\u4ee5\u53ef\u8bfb\u7684\u5f62\u5f0f\u6253\u5370\u65e5\u5fd7\u548c\u5927\u5c0f<\/code><\/td><td><\/td><\/tr><tr><td><code>--no-trunc<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>-q &lt;br&gt;--quiet<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>5.6 <code>docker save [options] image... \/\/\u5c06\u6307\u5b9a\u955c\u50cf\u4fdd\u5b58\u4e3atar\u5f52\u6863\u6587\u4ef6<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-o &lt;br&gt; --output str<\/code><\/td><td><code>\u8f93\u51fa\u81f3\u6307\u5b9a\u7684\u6587\u4ef6<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>5.6 <code>docker import [options] file\/url\/- [repository[:tag]] \/\/\u7531tar\u6587\u6863\u751f\u6210\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>-c ,&lt;br&gt; --change list<\/code><\/td><td><code>\u7528dockerfile\u6307\u4ee4\u521b\u5efa\u955c\u50cf<\/code><\/td><td><\/td><\/tr><tr><td><code>-m, &lt;br&gt; --message str<\/code><\/td><td><code>\u4e3a\u521b\u5efa\u7684\u955c\u50cf\u8bbe\u7f6e\u63cf\u8ff0\u4fe1\u606f<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>5.7 <code>docker build [options] path \/ url \/ - \/\/\u4f7f\u7528dockerfile\u521b\u5efa\u955c\u50cf<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>--add-host list<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--build-arg list<\/code><\/td><td><code>\u8bbe\u7f6e\u955c\u50cf\u521b\u5efa\u65f6\u7684\u53d8\u91cf<\/code><\/td><td><\/td><\/tr><tr><td><code>--cache-from str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--cgroup-parent str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--compress<\/code><\/td><td><code>\u4f7f\u7528zip\u538b\u7f29\u6784\u5efa\u4e0a\u4e0b\u6587<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpu-period int<\/code><\/td><td><code>\u9650\u5236 CPU CFS\u5468\u671f<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpu-quota int<\/code><\/td><td><code>\u9650\u5236 CPU CFS\u914d\u989d<\/code><\/td><td><\/td><\/tr><tr><td><code>-c &lt;br&gt; --cpu-shars int<\/code><\/td><td><code>\u8bbe\u7f6e cpu \u4f7f\u7528\u6743\u91cd<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpuset-cpus str<\/code><\/td><td><code>\u6307\u5b9a\u4f7f\u7528\u7684CPU id<\/code><\/td><td><\/td><\/tr><tr><td><code>--cpuset-mems str<\/code><\/td><td><code>\u6307\u5b9a\u4f7f\u7528\u7684\u5185\u5b58 id<\/code><\/td><td><\/td><\/tr><tr><td><code>--disable-content-trust<\/code><\/td><td><code>\u5ffd\u7565\u6821\u9a8c\uff0c\u9ed8\u8ba4\u5f00\u542f<\/code><\/td><td><\/td><\/tr><tr><td><code>-f &lt;br&gt; --file str<\/code><\/td><td><code>\u6307\u5b9a\u8981\u4f7f\u7528\u7684Dockerfile\u8def\u5f84<\/code><\/td><td><\/td><\/tr><tr><td><code>--force-rm<\/code><\/td><td><code>\u8bbe\u7f6e\u955c\u50cf\u8fc7\u7a0b\u4e2d\u5220\u9664\u4e2d\u95f4\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><tr><td><code>--iidfile str<\/code><\/td><td><code>\u6307\u5b9a\u4fdd\u5b58\u955c\u50cfid\u7684\u6587\u4ef6<\/code><\/td><td><\/td><\/tr><tr><td><code>--isolation str<\/code><\/td><td><code>\u4f7f\u7528\u5bb9\u5668\u9694\u79bb\u6280\u672f<\/code><\/td><td><\/td><\/tr><tr><td><code>--label list<\/code><\/td><td><code>\u8bbe\u7f6e\u955c\u50cf\u4f7f\u7528\u7684\u5143\u6570\u636e<\/code><\/td><td><\/td><\/tr><tr><td><code>-m &lt;br&gt; --memory bytes<\/code><\/td><td><code>\u8bbe\u7f6e\u5185\u5b58\u6700\u5927\u503c<\/code><\/td><td><\/td><\/tr><tr><td><code>--memory-swap bytes<\/code><\/td><td><code>\u8bbe\u7f6eSwap\u7684\u6700\u5927\u503c\u4e3a\u5185\u5b58+swap\uff0c\"-1\"\u8868\u793a\u4e0d\u9650swap<\/code><\/td><td><\/td><\/tr><tr><td><code>--network str<\/code><\/td><td><code>\u8bbe\u7f6e\u955c\u50cf\u7f51\u7edc\u6a21\u5f0f<\/code><\/td><td><\/td><\/tr><tr><td><code>--no-cache<\/code><\/td><td><code>\u521b\u5efa\u955c\u50cf\u7684\u8fc7\u7a0b\u4e0d\u4f7f\u7528\u7f13\u5b58<\/code><\/td><td><\/td><\/tr><tr><td><code>--pull<\/code><\/td><td><code>\u5c1d\u8bd5\u53bb\u66f4\u65b0\u955c\u50cf\u7684\u65b0\u7248\u672c<\/code><\/td><td><\/td><\/tr><tr><td><code>-q, &lt;br&gt; --quiet<\/code><\/td><td><code>\u53ea\u8f93\u51fa\u955c\u50cfID<\/code><\/td><td><\/td><\/tr><tr><td><code>--rm<\/code><\/td><td><code>\u8bbe\u7f6e\u955c\u50cf\u6210\u529f\u540e\u5220\u9664\u4e2d\u95f4\u5bb9\u5668<\/code><\/td><td><\/td><\/tr><tr><td><code>--security-opt str<\/code><\/td><td><code>\u5b89\u5168\u8bbe\u7f6e<\/code><\/td><td><\/td><\/tr><tr><td><code>--shm-size bytes<\/code><\/td><td><code>\u8bbe\u7f6e\/dev\/shm\u7684\u5927\u5c0f\uff0c\u9ed8\u8ba4\u503c\u662f64M<\/code><\/td><td><\/td><\/tr><tr><td><code>-t, &lt;br&gt; --tag list<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--target str<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--ulimit ulimit<\/code><\/td><td><code>Ulimit\u914d\u7f6e<\/code><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">6. \u5176\u4ed6\u547d\u4ee4<\/h5>\n\n\n\n<p>6.1 <code>docker info \/\/\u663e\u793adocker\u7cfb\u7edf\u4fe1\u606f<\/code><\/p>\n\n\n\n<p>6.2 <code>docker version \/\/ \u663e\u793adocker\u76f8\u5173\u7684\u7248\u672c\u4fe1\u606f<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u9009\u9879<\/th><th>\u8bf4\u660e<\/th><th>\u793a\u4f8b<\/th><\/tr><\/thead><tbody><tr><td><code>--<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><tr><td><code>--<\/code><\/td><td>&#8220;<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><em><\/em>1\u4eba\u70b9\u8d5e<em><\/em><em><\/em><a href=\"\/nb\/37216407\" target=\"_blank\" rel=\"noreferrer noopener\"><em><\/em>Docker<\/a><em><\/em><\/p>\n\n\n\n<p>\u4f5c\u8005\uff1axzz4632<br>\u94fe\u63a5\uff1ahttps:\/\/www.jianshu.com\/p\/2f97f61933b9<br>\u6765\u6e90\uff1a\u7b80\u4e66<br>\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u955c\u50cf\u4ed3\u5e93 1.1 docker search [OPTIONS] TERM \/\/ \u641c\u7d22\u955c\u50cf \u9009\u9879 \u8bf4\u660e  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[62],"class_list":["post-908","post","type-post","status-publish","format-standard","hentry","category-jishu","tag-zongjie"],"_links":{"self":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=908"}],"version-history":[{"count":1,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions"}],"predecessor-version":[{"id":909,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/908\/revisions\/909"}],"wp:attachment":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}