我无法从私有 bitbucket 存储库构建 docker 映像。如 docker 文档中所述,我的 bitbucket 存储库在其根目录上有一个“Dockerfile”。
Docker version 1.3.1, build 4e9bbfa
Run Code Online (Sandbox Code Playgroud)
docker build --rm=true --tag="myorg/myimagename" git://bitbucket.org:myacct/myrepo.git
Run Code Online (Sandbox Code Playgroud)
错误:致命:无法连接到 bitbucket.org:bitbucket.org:ai_socktype 不支持 Servname
docker build --rm=true --tag="myorg/myimagename" git://git@bitbucket.org:myacct/myrepo.git
Run Code Online (Sandbox Code Playgroud)
错误:致命:无法连接到 bitbucket.org:bitbucket.org:ai_socktype 不支持 Servname
当 Git 存储库设置为 URL 时,存储库将用作上下文。Git 存储库与其子模块 (git clone -recursive) 一起克隆。新的 git clone 出现在本地主机上的临时目录中,然后将其作为上下文发送到 Docker 守护程序。这样,您的本地用户凭据和 VPN 等可用于访问私有存储库。
这将克隆 GitHub 存储库并将克隆的存储库用作上下文。存储库根目录下的 Dockerfile 用作 Dockerfile。请注意,您可以使用 git:// 架构指定任意 Git 存储库。
https://docs.docker.com/reference/commandline/cli/#examples_1
Chrome会向其报告内容安全策略违规行为report-uri,但不会报告违规详情.它报告{}而不是提供有关违反政策的详细信息.所有其他浏览器似乎都在报告违规细节.我的政策如下.
我试过了...
report-uri指令中.Report-Only模式default-src 'none' ; report-uri /api/csp-report;问题我还没有找到答案
该政策(通过HTTP标头发送)
Content-Security-Policy-Report-Only:default-src'none'; script-src'self''unsafe-eval'https://www.google-analytics.com ; style-src'self''unsafe-inline'https://fonts.googleapis.com ; img-src'self'https ://www.google-analytics.com ; font-src'self'https ://fonts.gstatic.com ; connect-src'self'https ://api.servicesite.com ; frame-src'none'; child-src'un'; frame-ancestors'none'; 形式行动'自我'; 升级不安全,请求; 块全混合内容; 反射-xss块; base-uri https://*.mysite.com; 引用来源 - 当交叉起源; report-uri/api/csp-report;
这让我觉得这是我接收代码中的一个解析问题(节点,使用body-parser表达).但是,仍然对为什么这只会发生在Chrome CSP报告中而感到困惑.所有其他浏览器的报告通过就好了.
google-chrome node.js express content-security-policy body-parser