草庐IT

source-registry

全部标签

docker - 构建镜像时出现错误 "Get https://registry-1.docker.io/v2/: net/http: request canceled"

我在构建图像时遇到以下错误Step1/10:FROMubuntu:14.04Gethttps://registry-1.docker.io/v2/:net/http:requestcanceledwhilewaitingforconnection(Client.Timeoutexceededwhileawaitingheaders) 最佳答案 我认为问题在于您在代理后面,在这种情况下,您需要在Dockersystemd服务文件中编写手动配置。这将覆盖默认的docker.service文件。如果您使用DockerforWindows,

docker - 如何使用 Docker Registry API V2 从私有(private)注册表中删除镜像?

给定一个DockerRegistry在localhost:5000,我如何使用DockerRegistryHTTPAPIV2和curl删除具有以下listheader和list的busybox:latest:derek@derekmahar-ubuntu-512mb-tor1-01:~/Projects/docker-registry$curl--head--requestGEThttp://localhost:5000/v2/busybox/manifests/latestHTTP/1.1200OKContent-Length:2561Content-Type:application

Dockerfile COPY {source :-. ..}

当您在VisualStudio2017中创建具有Docker支持的项目时,Dockerfile具有以下行:COPY${source:-obj/Docker/publish}.这是什么意思?源宏指向哪里?破折号是什么意思? 最佳答案 这叫做变量替换。英文翻译成这样:“嘿Docker,当你构建这个时,COPY将你在$source变量中找到的路径复制到镜像中的当前目录(.).如果$source为空或不存在,则使用默认路径obj/Docker/publish"$source是在执行dockerbuild之前定义的环境变量。一些引用资料:Do

docker - Visual Studio 2017 何时、何地以及如何设置 DOCKER_BUILD_SOURCE 环境变量

在VisualStudio2017中创建具有docker支持的新.NET核心应用程序时,它会创建许多docker-compose.yml文件。docker-compose.vs.debug.yml和发布变体都包含对名为DOCKER_BUILD_SOURCE的环境变量的引用:version:'2'services:app:image:app:devbuild:args:source:${DOCKER_BUILD_SOURCE}environment:-DOTNET_USE_POLLING_FILE_WATCHER=1volumes:-./app:/app-~/.nuget/package

docker - 我应该在哪里设置 Mac OS 上的 '--insecure-registry' 标志?

我使用的是OSX10.10。在尝试与我们团队的私有(private)docker注册表通信时,它不断给我这样的错误:Error:Invalidregistryendpointhttps://registry.xxx.xxx/v1/:Gethttps://registry.af-sys.com/v1/_ping:dialtcpxx.xxx.xxx.xxx:xxx:i/otimeout.IfthisprivateregistrysupportsonlyHTTPorHTTPSwithanunknownCAcertificate,pleaseadd--insecure-registry...在

docker - 如何远程访问私有(private) docker-registry?

我正在尝试使用从以下位置获取的图像设置一个私有(private)docker注册表:https://github.com/docker/docker-registry只需运行:dockerrun-p5000:5000注册表我只能从本地主机拉取/推送到这个存储库,但是如果我尝试从另一台机器(使用同一LAN上的私有(private)地址)访问它,它会失败并显示错误消息:*2014/11/0309:49:04Error:Invalidregistryendpointhttps://10.0.0.26:5000/v1/':Gethttps://10.0.0.26:5000/v1/_ping:F

c++ - 术语 "source file"和 "translation unit"之间有什么区别?

源文件和翻译单元有什么区别? 最佳答案 来自C++标准:Asourcefiletogetherwithalltheheadersandsourcefilesincludedviathepreprocessingdirective#includelessanysourcelineskippedbyanyoftheconditionalinclusionpreprocessingdirectivesiscalledatranslationunit. 关于c++-术语"sourcefile"和

c++ - 四人帮 : lexi editor c++ source

我正在阅读"DesignPatterns:ElementsofReusableOOSW".在第二章中,作者提供了一个他们称为Lexi的编辑器的案例研究,该编辑器似乎是用C++编写的。我四处张望,但唯一的usefullink我可以找到这样说:TheGoftellusinanotethatLexiisbasedon"Doc,atexteditingapplicationdevelopedbyCalder".Butthispaperonlyoutlinesaneditor,withoutanysource.AndIevenbelievetodaythatLexinevertrulyexist

c++ - 尝试使用 dynamic_cast 时出现 "source type is not polymorphic"

structA{};structB:A{};intmain(){A*a=newB();B*b=dynamic_cast(a);}给予:cannotdynamic_cast'a'(oftype'structA*')totype'structB*'(sourcetypeisnotpolymorphic)如何使A具有多态性?我想安全地将其转换到B。(一种方法是添加一个dummy虚函数,但有更好的方法吗?) 最佳答案 您需要使A具有多态性,可以通过添加virtual析构函数或任何虚函数来实现:structA{virtual~A()=defa

open-source - Go 代码贡献 : license and patent implications?

已结束。此问题不符合StackOverflowguidelines.它目前不接受答案。这个问题似乎与helpcenter中定义的范围内的编程无关。.关闭7年前。Improvethisquestion我一直是reviewingthecontributionsdocumentationforGooglenewlanguage,并对贡献一个新包的想法感到好奇。它指出这应该包含在贡献的源代码的顶部://Copyright2009TheGoAuthors.Allrightsreserved.//UseofthissourcecodeisgovernedbyaBSD-style//licenset