简体   繁体   English

没有 Dockerfile 的 Docker 图像构建的可行性

[英]Feasibility of Docker image building without Dockerfile

Currently I am working with R&D for deployment of my micro services using docker, Kubernetes and Jenkins.目前,我正在与研发部门合作,使用 docker、Kubernetes 和 Jenkins 部署我的微服务。 Now like normal I am building docker images and deploying using Kubernetes cluster.现在像往常一样,我正在构建 docker 映像并使用 Kubernetes 集群进行部署。 I am creating the Dockerfile and keeping that in my repository with steps FROM, ADD, EXPOSE ENTRY POINT etc.我正在创建 Dockerfile 并通过 FROM、ADD、EXPOSE ENTRY POINT 等步骤将其保存在我的存储库中。

My question is, is it possible to create Docker image by defining all these arguments like ADD, EXPOSE, FROM etc in command line without using Dockerfile?我的问题是,是否可以通过在命令行中定义所有这些 arguments(如 ADD、EXPOSE、FROM 等)来创建 Docker 图像而不使用 Dockerfile? Now I am just checking that is that possible or not.现在我只是在检查这是否可能。

If this way is possible, kindly give any documentation link for exploration.如果这种方式可行,请提供任何文档链接以供探索。 If this is not possible, is there another approach?如果这是不可能的,还有其他方法吗?

From your question what you need is this.从你的问题来看,你需要的是这个。 OpenSourceDockerFileGenerator开源DockerFileGenerator

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM