草庐IT

registry-virtualization

全部标签

registry - Docker - 无法将图像推送到私有(private)注册表

我通过拉取并运行注册表镜像在我的服务器上创建了自己的私有(private)注册表。sudodockerrun-d-p5000:5000registry之后,我尝试标记一个简单的图像并将其推送到服务器。sudodockertagubuntu:latestlocalhost:5000/myprivateubuntu我收到了这个错误:Error:Invalidregistryendpoint...Get...IfthisprivateregistrysupportsonlyHTTPorHTTPSwithanunknownCAcertificate,pleaseadd'--insecure-r

docker - 从 yaml 文件创建 kubernetes docker-registry 密码?

我可以运行这个命令来为一个Kubernetes集群创建一个docker注册表secret:kubectlcreatesecretdocker-registryregsecret\--docker-server=docker.example.com\--docker-username=kube\--docker-password=PW_STRING\--docker-email=my@email.com\--namespacemynamespace我想从YAML文件创建相同的secret。有谁知道如何在YAML文件中设置它?我需要这个作为YAML文件,以便它可以用作Helm模板,它允许H

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

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

windows - Docker for Windows 错误 : "Hardware assisted virtualization and data execution protection must be enabled in the BIOS"

我已安装Docker,但在运行GUI时出现此错误:HardwareassistedvirtualizationanddataexecutionprotectionmustbeenabledintheBIOS似乎是一个错误,因为Docker在命令行中的工作方式就像一个魅力,但我想知道是否有人知道为什么会发生这种情况?在您问之前,是的,我已经在BIOS中启用了虚拟化,并且英特尔处理器识别实用程序确认它已被激活。Docker、docker-machine和docker-compose都在命令行下工作,Virtualbox工作,从Debian或UbuntuVM运行Docker工作。GUI有一个

node.js - MongoDB Aggregate 中的 Mongoose Virtuals

我的MongooseSchema如下:varDSchema=newmongoose.Schema({original_y:{type:Number},,new_y:{type:Number},,date:{type:Date},dummy:[dummyEmbeddedDocuments]},toObject:{virtuals:true},toJSON:{virtuals:true}});DSchema.virtual('dateformatted').get(function(){returnmoment(this.date).format('YYYY-MM-DDHH:mm:ss')

javascript - Mongoose toObject : { virtuals: true }

我正在尝试学习MongoDB/Node,但我注意到在架构中我经常看到这样的内容:toObject:{virtuals:true}toJSON:{virtuals:true}这两行是什么意思? 最佳答案 这不是“MongoDB”,而是特定于mongooseODM。Mongoose有一个"virtual"的概念架构定义中的字段。这基本上允许这样做(从文档中公然收集):varpersonSchema=newSchema({name:{first:String,last:String}});varPerson=mongoose.model(

c++ - 根据定义,放置 "virtual destructor inside an interface"是否不再是接口(interface)?

这就是我所在的盒子。我想了解为什么在你的接口(interface)类中有一个“虚拟析构函数”很重要。如果你能坚持到最后,你就会明白为什么这些东西是用引号引起来的……我也想让所有的词汇都绝对正确。到目前为止,我的流程如下:有时你有基类,有时你有继承自基类的派生类。如果您有一个发现自己指向派生对象的基指针,并且您希望从该基指针指向派生对象进行的成员函数调用表现为如果它实际上是从派生对象调用的,那么你调用的成员函数最好在基类中声明为virtual。接口(interface)是任何具有仅纯虚函数的类。如果从这个接口(interface)类派生出一个新的类,并且实现了所有的纯虚函数,那么最终就可