[英]Google Cloud Container: Create a docker container from a Dockerfile
Is it possible to create a docker container in a Google Container Engine cluster, using a dockerfile
, which builds an image on-the-fly and deploy in cluster, rather than creating an image first and uploading it to a Google Container Registry, and then using it from there? 是否可以使用
dockerfile
在Google Container Engine集群中创建dockerfile
,该文件可动态生成映像并在集群中部署,而不是先创建映像并将其上传到Google Container Registry,然后再将其上传从那里使用它?
I feel like that is cumbersome, and there should be a way to create containers in cluster directly using a dockerfile. 我觉得这很麻烦,应该有一种方法可以直接使用dockerfile在集群中创建容器。
It is not possible to do this in Google Container Engine. 在Google Container Engine中无法执行此操作。 Google Container Engine is designed to help orchestrate container deployment and does not itself provide a source -> deployment workflow.
Google Container Engine旨在帮助协调容器的部署,它本身并不提供源->部署工作流。
You may want to look at Google App Engine or Openshift 3 (which is built on Kubernetes) as a more fully featured platform-as-a-service offering. 您可能希望将Google App Engine或Openshift 3 (基于Kubernetes构建)视为功能更全面的平台即服务产品。
You can also build this type of tooling on top of a Google Container Engine cluster yourself as all of the building blocks are available. 您还可以自己在Google Container Engine集群的顶部构建此类工具,因为所有构建块都可用。
One service to take a look at when constructing a workflow is Google Container Builder , which can simplify the process of building a container from source and pushing it to Google Container Registry. 构造工作流时要查看的一项服务是Google Container Builder ,它可以简化从源代码构建容器并将其推送到Google Container Registry的过程。
It is currently a fairly low level service, but offers some advantages for environments where it may be impractical to run docker build
locally. 它目前是一个较低级别的服务,但对于在本地运行
docker build
可能不切实际的环境提供了一些优势。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.