{"id":12461,"date":"2022-09-03T10:36:40","date_gmt":"2022-09-03T02:36:40","guid":{"rendered":"http:\/\/gulass.cn\/?p=12461"},"modified":"2022-09-04T00:55:40","modified_gmt":"2022-09-03T16:55:40","slug":"docker-security-scanning","status":"publish","type":"post","link":"https:\/\/gulass.cn\/docker-security-scanning.html","title":{"rendered":"\u4e13\u6ce8docker\u5b89\u5168:Security Scanning"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | Docker\u6beb\u65e0\u7591\u95ee\u662f\u8fd1\u671f\u8fd0\u7ef4\u540c\u5b66\u4eec\u7684\u70ed\u70b9\u8bdd\u9898\uff0cDocker\u5b89\u5168\u4e5f\u7531\u6b64\u500d\u53d7\u91cd\u89c6\uff0cDocker Security Scanning \u662f\u4e00\u6b3eDocker\u955c\u50cf\u626b\u63cf\u7684\u5b89\u5168\u5de5\u5177\uff0c\u76ee\u524d\u5df2\u7ecf\u5728Docker Cloud\u6295\u5165\u4f7f\u7528\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u4eca\u5929\u6211\u4eec\u5ba3\u5e03 Docker Security Scanning\uff08Docker\u5b89\u5168\u626b\u63cf\uff0c\u539f\u540d\u9879\u76ee\u9e66\u9e49\u87ba\uff09\u5168\u9762\u4e0a\u5e02\u3002Security Scanning \u76ee\u524d\u4ee5\u4e00\u4e2a\u670d\u52a1\u9644\u52a0\u5728 Docker Cloud \u79c1\u6709\u4ed3\u5e93\u548c\u4f4d\u4e8eDocker Hub\u7684\u5b98\u65b9\u4ed3\u5e93\u3002Security Scanning \u4e3a\u60a8\u7684docker\u955c\u50cf\u79ef\u6781\u5730\u8fdb\u884c\u98ce\u9669\u7ba1\u7406\u548c\u63d0\u4f9b\u8be6\u7ec6\u7684\u5b89\u5168\u914d\u7f6e\uff0c\u5e76\u7b80\u5316\u8f6f\u4ef6\u5408\u89c4\u6027\u3002Docker Security Scanning \u4f1a\u5728\u60a8\u7684\u955c\u50cf\u90e8\u7f72\u4e4b\u524d\u8fdb\u884c\u4e8c\u8fdb\u5236\u7ea7\u522b\u7684\u626b\u63cf\uff0c\u63d0\u4f9b\u8be6\u7ec6\u7684\u7269\u6599\u6e05\u5355\uff08BOM\uff09\uff0c\u5217\u51fa\u6240\u6709\u7684\u5c42\u548c\u7ec4\u4ef6\uff0c\u6301\u7eed\u8fdb\u884c\u6f0f\u6d1e\u76d1\u63a7\uff0c\u5f53\u53d1\u73b0\u65b0\u7684\u6f0f\u6d1e\u65f6\u63d0\u4f9b\u901a\u77e5\u7684\u670d\u52a1\u3002<\/p>\n <\/p>\n \u5f53\u60a8\u8003\u8651\u5230\u73b0\u4ee3\u8f6f\u4ef6\u7684\u4f9b\u5e94\u94fe\uff0c\u8fd9\u901a\u5e38\u5305\u62ec\u4e00\u4e9b\u4e0d\u540c\u7684\u5f00\u53d1\u573a\u666f\u548c\u8de8\u65f6\u533a\u7684\u516c\u53f8\u91cc\u9762\u7684IT\u56e2\u961f\uff0c\u6808\u548c\u57fa\u7840\u8bbe\u65bd\u53bb\u6784\u5efa\u3001\u4ea4\u4ed8\u548c\u8fd0\u884c\u5e94\u7528\u3002\u5e94\u7528\u5f00\u53d1\u56e2\u961f\u6700\u4e3b\u8981\u7684\u5173\u6ce8\u70b9\u662f\u6784\u5efa\u4e00\u4e2a\u6700\u597d\u7684\u5e94\u7528\uff0c\u5e76\u4e14\u4ee5\u5c3d\u53ef\u80fd\u5feb\u5730\u4ea4\u4ed8\u7ed9\u5ba2\u6237\u3002\u7136\u800c\uff0c\u8f6f\u4ef6\u4f9b\u5e94\u94fe\u5e76\u4e0d\u4f1a\u8ba9\u5f00\u53d1\u8005\u505c\u6b62\u5f00\u53d1\u7684\u5de5\u4f5c\uff0c\u8fd9\u662f\u4e00\u4e2a\u6301\u7eed\u7684\u5faa\u73af\u548c\u8fed\u4ee3\uff0c\u5305\u62ec\u4e0e\u56e2\u961f\u5171\u4eab\u4ee3\u7801\u548c\u8fc1\u79fb\u73af\u5883\u3002Docker\u8ba9\u5e94\u7528\u5149\u6ed1\u79fb\u690d\u5e76\u4e14\u9ed8\u8ba4\u8fd0\u884c\u5728\u5b89\u5168\u7684\u5e73\u53f0\uff0c\u4ee5\u786e\u4fdd\u5b89\u5168\u7684\u8bbf\u95ee\u548c\u5bf9\u5b89\u5168\u5185\u5bb9\u5bb9\u91cf\u7684\u63a7\u5236\u3002Docker Security Scanning \u901a\u8fc7\u63d0\u4f9b\u5728docker\u955c\u50cf\u5185\u6df1\u5ea6\u641c\u7d22\u4ee5\u53ca\u7ec4\u4ef6\u7684\u5b89\u5168\u914d\u7f6e\u53bb\u4ea4\u4ed8\u5b89\u5168\u7684\u5185\u5bb9\u3002\u6b64\u4fe1\u606f\u5728\u5e94\u7528\u7684\u751f\u547d\u5468\u671f\u6bcf\u4e2a\u9636\u6bb5\u90fd\u662f\u6709\u6548\u7684\u3002\u8ba9\u6211\u4eec\u6df1\u5165\u4e86\u89e3Docker Security Scanning\u7684\u7ec6\u8282\u7136\u540e\u770b\u770b\u5b83\u662f\u600e\u4e48\u5de5\u4f5c\u7684\u3002<\/p>\n <\/p>\n Docker Security Scanning \u5df2\u7ecf\u5728 Docker Cloud\uff08\u5e76\u5c06\u5728Docker Datacenter\uff09\u4f7f\u7528\uff0c\u5f53\u4e00\u4e2a\u65b0\u7684\u955c\u50cf\u63a8\u9001\u5230\u4ed3\u5e93\u65f6\u4f1a\u89e6\u53d1\u4e00\u7cfb\u5217\u7684\u4e8b\u4ef6\u3002\u5176\u670d\u52a1\u5305\u62ec\u4e00\u4e2a\u626b\u63cf\u89e6\u53d1\u5668\uff0c\u626b\u63cf\u5668\uff0c\u4e00\u4e2a\u6570\u636e\u5e93\uff0c\u63d2\u4ef6\u6846\u67b6\u548cCVE\u6570\u636e\u5e93\u7684\u9a8c\u8bc1\u670d\u52a1\u3002<\/p>\n \u6df1\u53ef\u89c1\u6027\u7684\u5b89\u5168\u914d\u7f6e\u6587\u4ef6<\/strong><\/div>\n \u5f53\u7528\u6237\/\u53d1\u884c\u5546\u63a8\u9001\u4e00\u4e2a\u955c\u50cf\u5230Docker Cloud\u4ed3\u5e93\u65f6\uff0cDocker Security Scanning\u7684\u670d\u52a1\u4f1a\u542f\u52a8\u3002\u626b\u63cf\u5668\u670d\u52a1\u83b7\u53d6\u5230\u955c\u50cf\u7136\u540e\u5c06\u5b83\u5206\u79bb\u6210\u76f8\u5e94\u7684\u5c42\u548c\u7ec4\u4ef6\u3002\u7136\u540e\u8fd9\u4e9b\u7ec4\u4ef6\u5c06\u88ab\u9001\u5230\u9a8c\u8bc1\u670d\u52a1\u8ddf\u591a\u4e2aCVE\u6570\u636e\u5e93\u5305\u7684\u540d\u79f0\u548c\u7248\u672c\u8fdb\u884c\u5bf9\u6bd4\uff0c\u8fd8\u4f1a\u5bf9\u5305\u7684\u5185\u5bb9\u8fdb\u884c\u4e8c\u8fdb\u5236\u7ea7\u522b\u7684\u626b\u63cf\u3002<\/p>\n \u6700\u540e\u4e00\u70b9\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3a\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u786e\u4fdd\u8fd9\u4e2a\u5305\u5df2\u7ecf\u6b63\u786e\u7684\u58f0\u660e\u3002<\/p>\n docker\u955c\u50cf\u662f\u7531\u591a\u4e2a\u5c42\u6784\u6210\uff0c\u6bcf\u4e00\u5c42\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u7684\u7ec4\u4ef6\/\u5305\uff0c\u6bcf\u4e00\u4e2a\u5305\u90fd\u6709\u76f8\u5e94\u7684\u540d\u79f0\u548c\u7248\u672c\u53f7\u3002\u5f53\u6f0f\u6d1e\u62a5\u544a\u7ed9CVE\u6570\u636e\u5e93\u65f6\uff0c\u4ed6\u4eec\u88ab\u94fe\u63a5\u5230\u4e00\u4e2a\u5305\u540d\u548c\u7279\u5b9a\u7684\u7248\u672c\u53f7\u3002<\/p>\n <\/p>\n \u8bb8\u591a\u670d\u52a1\u90fd\u662f\u76f4\u63a5\u7528\u5305\u540d\u5728\u5b58\u50a8\u7740\u6709\u95ee\u9898\u7684\u5305\u7684\u6570\u636e\u5e93\u7684\u505a\u7b80\u5355\u7684\u68c0\u67e5\u3002\u4ec5\u6b64\u662f\u4e0d\u591f\u7684\uff0c\u56e0\u4e3a\u5b83\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u56de\u7b54\u201c\u4ec0\u4e48\u4e1c\u897f\u5728\u6211\u7684\u5bb9\u5668\u4e2d\u8fd0\u884c\uff1f\u201d\u8fd9\u4e2a\u95ee\u9898\u3002\u9664\u4e86\u68c0\u67e5\u5305\u7684\u540d\u79f0\uff0cDocker Security Scanning \u8fd8\u5bf9\u6bcf\u4e00\u5c42\u8fdb\u884c\u4e8c\u8fdb\u5236\u7ea7\u522b\u5206\u6790\uff0c\u5e76\u4e14\u628a\u6bcf\u4e2a\u4e8c\u8fdb\u5236\u4e0b\u9690\u542b\u7684\u6807\u8bb0\u4e0e\u5df2\u77e5\u7684\u5185\u5bb9\u548c\u7248\u672c\u76f8\u5339\u914d\uff0c\u540c\u65f6\u4f1a\u4ea4\u53c9\u5f15\u7528\u5df2\u77e5\u6f0f\u6d1e\u7684\u6570\u636e\u5e93\u7684\u5185\u5bb9 \u3002\u8fd9\u8ba9\u6211\u4eec\u80fd\u53d1\u73b0\u4e0d\u4ec5\u5728\u6807\u51c6BOM\uff08\u5373\u5217\u51fa\u7684\u7ec4\u4ef6\u7684dpkg -l\u6216\u5b89\u88c5yum\u7684\u5217\u8868\uff09\uff0c\u8fd8\u6709\u6bcf\u4e00\u4e2a\u9759\u6001\u94fe\u63a5\u5e93\u6765\u6b63\u786e\u8bc6\u522b\u90a3\u4e9b\u5e93\u4e2d\u5df2\u7ecf\u6253\u8fc7\u8865\u4e01\u5e76\u4e14\u56de\u6eda\u5230\u4e4b\u524d\u6709\u95ee\u9898\u7684\u67d0\u4e2a\u7248\u672c\u7684\u7ec4\u4ef6\u3002<\/p>\n \u8fd9\u79cd\u65b9\u6cd5\u964d\u4f4e\u4e86\u4e86\u4e4b\u524d\u62a5\u544a\u4e2d\u672a\u7ecf\u5305\u7248\u672c\u66f4\u6539\u4f46\u5df2\u7ecf\u4fee\u590d\u95ee\u9898\u548c\u9632\u6b62\u5982\u679c\u6709\u4eba\u6545\u610f\u91cd\u547d\u540d\u574f\u5305\u8fdb\u884c\u5206\u53d1\u7684\u60c5\u51b5\u4e0b\u7684\u8bef\u62a5\u7387\u3002 \u4e00\u65e6\u6240\u6709\u5c42\u626b\u63cf\u7ed3\u675f\u5e76\u8fd4\u56de\u4e86\u7ed3\u679c\uff0c\u6bcf\u4e00\u4e2a\u955c\u50cf\u548c\u6807\u7b7e\u7684\u8be6\u7ec6\u7684BOM\u5c06\u88ab\u4ea7\u751f\u5e76\u5b58\u50a8\u5728Docker Security Scanning \u7684\u6570\u636e\u5e93\u3002\u8fd4\u56de\u7684\u7ed3\u679c\u5c06\u88ab\u53d1\u9001\u5230Docker Cloud\uff0c\u5c06\u8fde\u540c\u6bcf\u4e00\u4e2a\u626b\u63cf\u8fc7\u7684\u4ed3\u5e93\u7684\u6807\u7b7e\u7684BOM\u5c55\u793a\u5230UI\u5c42\u3002<\/p>\n \u6301\u7eed\u76d1\u6d4b\u548c\u901a\u77e5<\/strong><\/div>\n \u626b\u63cf\u955c\u50cf\u7684\u80fd\u529b\u63d0\u4f9b\u4e86\u7ed9\u5b9a\u65f6\u95f4\u70b9\u7684\u6d1e\u5bdf\u529b\u3002Docker Security Scanning \u8fc8\u51fa\u5f88\u5927\u7684\u4e00\u6b65\u4ee5\u901a\u8fc7\u6301\u7eed\u7684\u76d1\u63a7\u548c\u901a\u77e5\u6765\u786e\u4fdd\u60a8\u7684\u955c\u50cf\u4fdd\u6301\u5b89\u5168\u3002Docker Security Scanning \u7684\u6570\u636e\u5e93\u50a8\u5b58\u7740\u8be6\u7ec6\u7684\u955c\u50cfBOM\u4ee5\u53ca\u76f8\u5e94\u6240\u6709\u7ec4\u4ef6\u7684\u6f0f\u6d1e\u3002\u5f53\u4e00\u4e2a\u6f0f\u6d1e\u88ab\u62a5\u544a\u5230\u4e2d\u592e\u7684CVE\u6570\u636e\u5e93\u65f6\uff0cDocker Security Scanning \u68c0\u67e5\u6211\u4eec\u7684\u670d\u52a1\u6570\u636e\u5e93\u53bb\u67e5\u770b\u54ea\u4e9b\u955c\u50cf\u548c\u6807\u7b7e\u5305\u542b\u4e86\u53d7\u5230\u5f71\u54cd\u7684\u5305\u5e76\u901a\u8fc7\u90ae\u4ef6\u63d0\u9192\u4ed3\u5e93\u7684\u7ba1\u7406\u5458\u3002<\/p>\n \u8fd9\u4e9b\u901a\u77e5\u5305\u62ec\u6f0f\u6d1e\u672c\u8eab\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u5217\u51fa\u4e86\u90a3\u4e9b\u5305\u542b\u6f0f\u6d1e\u7684\u4ed3\u5e93\u548c\u6807\u7b7e\u3002\u6709\u4e86\u8fd9\u4e9b\u4fe1\u606f\u540e\uff0c\u901a\u8fc7\u4e86\u89e3\u54ea\u4e9b\u6f0f\u6d1e\u5f71\u54cd\u4e86\u54ea\u4e9b\u8f6f\u4ef6\uff0c\u5ba1\u67e5\u6f0f\u6d1e\u7684\u4e25\u91cd\u7a0b\u5ea6\uff0c\u5236\u5b9a\u6b63\u786e\u7684\u89e3\u51b3\u65b9\u6848\uff0cIT\u56e2\u961f\u53ef\u4ee5\u4e3b\u52a8\u7ba1\u7406\u8f6f\u4ef6\u5408\u89c4\u6027\u3002<\/p>\n \u5b89\u5168\u6a2a\u8de8\u6574\u4e2a\u5185\u5bb9\u751f\u547d\u5468\u671f<\/strong><\/div>\n Docker Security Scanning \u662fDocker\u5de5\u4f5c\u6d41\u4e0a\u4e00\u4e2a\u4ee4\u4eba\u5174\u594b\u7684\u9644\u52a0\u4ea7\u54c1\uff0c\u5e2e\u52a9\u4f01\u4e1a\u6784\u5efa\u3001\u4ea4\u4ed8\u548c\u8fd0\u884c\u5b89\u5168\u8f6f\u4ef6\u3002\u548cContent Trust\uff08\u5185\u5bb9\u771f\u5b9e\uff09\u76f8\u7ed3\u5408\u540e\uff0c\u60a8\u53ef\u4ee5\u4fdd\u8bc1\u60a8\u7684\u8f6f\u4ef6\u505a\u4f60\u6240\u8bf4\u7684\u5de5\u4f5c\uff0c\u800c\u4e0d\u4f1a\u88ab\u6076\u610f\u7be1\u6539\u3002<\/p>\n \u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5b98\u65b9\u4ed3\u5e93\u4ece DockerCon EU in Nov 2015 \u5df2\u7ecf\u5f00\u59cb\u4f7f\u7528Security Scanning \u53bb\u5904\u7406\u4ed6\u4eec\u7684\u6f0f\u6d1e\u914d\u7f6e\uff0c\u4fee\u590d\u95ee\u9898\u548c\u534f\u540cContent Trust\u5206\u53d1\u5df2\u66f4\u65b0\u7684\u955c\u50cf\u3002\u8fd9\u4e2a\u7279\u6027\u8ba9Docker\u53ef\u4ee5\u548c\u4e0a\u6e38\u5408\u4f5c\u4f19\u4f34\u4e0a\u5408\u4f5c\uff0c\u4e3a\u60a8\u63d0\u4f9b\u66f4\u597d\u66f4\u5b89\u5168\u7684\u955c\u50cf\u3002<\/p>\n \u53ef\u7528\u6027\u548c\u5feb\u901f\u5165\u95e8<\/strong><\/div>\n Docker Security Scanning \u76ee\u524d\u53ef\u4ee5\u5728Docker Cloud\u4e0a\u7684\u79c1\u6709\u4ed3\u5e93\u8ba1\u5212\u7ed9\u7528\u6237\u6709\u9650\u65f6\u95f4\u7684\u514d\u8d39\u8bd5\u7528\u3002\u65e0\u8bba\u662f\u4e0d\u662f\u955c\u50cf\u7684\u63d0\u4ea4\u8005\uff0c\u4f60\u90fd\u53ef\u4ee5\u5728\u767b\u5f55\u540e\u67e5\u770b\u5230\u5728Docker Hub\u7684\u5b98\u65b9\u955c\u50cf\u7684\u626b\u63cf\u7ed3\u679c\u3002Security scanning \u5f88\u5feb\u5c06\u62d3\u5c55\u5230Docker Datacenter \u548c Docker Cloud \u7684\u516c\u5171\u4ed3\u5e93\u7528\u6237\u3002<\/p>\n \u5728Docker Cloud\u4f53\u9a8c\uff1a<\/strong><\/p>\n \u8981\u5c1d\u8bd5\u6b64\u529f\u80fd\uff0c\u8bf7\u8f6c\u5230 \u5e10\u6237\u8bbe\u7f6e>\u8ba1\u5212<\/em> \u5e76\u9009\u62e9\u590d\u9009\u6846\u3002\u4e00\u65e6\u88ab\u6fc0\u6d3b\uff0c\u6bcf\u4e00\u4e2a\u79c1\u6709\u4ed3\u5e93\u6700\u8fd1\u4e09\u4e2a\u6807\u7b7e\u5c06\u88ab\u626b\u63cf\uff0c\u5e76\u5c0624\u5c0f\u65f6\u5185\u7531\u6b64\u4ea7\u751fBOM\u5c55\u793a\u5728\u6807\u7b7e\u90e8\u5206\u3002\u968f\u540e\uff0cDocker Security Scanning \u5c06\u5728\u60a8\u6bcf\u6b21\u63a8\u9001\u65f6\u626b\u63cf\u60a8\u7684\u955c\u50cf\u6807\u7b7e\u3002<\/p>\n \u4e0b\u9762\u7684\u622a\u56fe\u663e\u793a\u4e865\u4e2a\u79c1\u6709\u4ed3\u5e93\u8ba1\u5212\u7684\u7528\u6237\u7684\u8ba1\u5212\u9875\u3002\u9009\u62e9\u52a0\u5165\u5230Docker Security Scanning \u7684\u590d\u9009\u6846\u51fa\u73b0\u5728\u8ba1\u5212\u6982\u8981\u7684\u5e95\u90e8\u3002<\/p>\n <\/p>\n \u6211\u4eec\u5f88\u9ad8\u5174\u8fd9\u4e2a\uff0c\u6211\u4eec\u8ba9\u6bcf\u4e00\u4f4d\u79c1\u4eba\u4ed3\u5e93\u8ba1\u5212\u7684\u5ba2\u6237\u514d\u8d39\u8bd5\u7528\u4e09\u4e2a\u6708\u3002<\/p>\n \u5982\u679c\u4f60\u6709\u4e00\u4e2aDocker Hub \u8d26\u6237\u5e76\u4e14\u4ece\u6765\u6ca1\u6709\u8bd5\u8fc7Docker Cloud\uff0c\u522b\u62c5\u5fc3\uff0c\u76f8\u540c\u7684\u767b\u5f55\u51ed\u8bc1\u5728Docker Cloud\u540c\u6837\u53ef\u7528\u3002\u539f\u751f\u7684\u96c6\u6210\u4fdd\u8bc1\u4f60\u7684Docker Hub \u4ed3\u5e93\u80fd\u5728 Docker Cloud \u7684\u201cRepositories\u201d \u90e8\u5206\u5c55\u793a\u3002\u79c1\u6709\u4ed3\u5e93\u8ba1\u5212\u63d0\u4f9b5\u4e2a\u79c1\u6709\u4ed3\u5e93\uff0c\u6bcf\u4e2a\u6708 $7 \u7684\u670d\u52a1\u5df2\u7ecf\u53ef\u4ee5\u5728Docker Cloud \u4e0a\u4eab\u53d7\u4e86\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/blog.docker.com\/2016\/05\/docker-security-scanning\/<\/a>\u7ffb\u8bd1\uff1a\u6768\u9e4f\u98de<\/span><\/p>\n |