什么是.dockerfile扩展名? [英] What is the .dockerfile extension?

查看:2428
本文介绍了什么是.dockerfile扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio代码(1.22.2)在保存对话框中提供了名为 .dockerfile 的文件扩展名。这个扩展名是什么文件?到目前为止,我在所有文档和示例中都看到了一个Dockerfile,它仅称为 Dockerfile





如果我输入 Dockerfile 作为文件名,将创建一个名为 Dockerfile.dockerfile 的文件。

解决方案

Dockerfile



A Dockerfile 是一个文本文档,其中包含用户可以在命令行上调用以组合图片的所有命令。使用 docker build ,用户可以创建自动执行的构建,该构建可以连续执行多个命令行指令。 Docker映像是容器的基础。 Image 是根文件系统更改和容器运行时中使用的相应执行参数的有序集合。映像通常包含一个堆叠在一起的分层文件系统的并集。 图像没有状态,并且永远不会改变



关于Docker



Docker 是推动容器发展的公司,并且是唯一可解决混合云中每个应用程序需求的容器平台提供商。当今的企业面临着进行数字化转型的压力,但受到现有应用程序和基础架构的限制,同时使越来越多样化的云,数据中心和应用程序体系结构合理化。 Docker 使应用程序和基础架构之间真正的独立性以及开发人员和IT操作人员释放其潜力并创建更好的协作和创新模型更多信息


Visual Studio Code (1.22.2) offers a file extension named .dockerfile in the the save dialog. What is a file with this extension? A Dockerfile is in all documentation and examples, that I've seen so far, only called Dockerfile.

If I enter Dockerfile as a file name, a file named Dockerfile.dockerfile is created.

解决方案

Dockerfile

A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession. Docker images are the basis of containers. An Image is an ordered collection of root filesystem changes and the corresponding execution parameters for use within a container runtime. An image typically contains a union of layered filesystems stacked on top of each other. An image does not have state and it never changes.More on

Dockerfile extension

A Dockerfile has no extension . if your using docker on docker on windows use notepad ++ to create a dockerfile while saving select "All type " and save the file name as "Dockerfile".

Mongodb/Dockerfile

About Docker

Docker is the company driving the container movement and the only container platform provider to address every application across the hybrid cloud. Today’s businesses are under pressure to digitally transform but are constrained by existing applications and infrastructure while rationalizing an increasingly diverse portfolio of clouds, datacenters and application architectures. Docker enables true independence between applications and infrastructure and developers and IT ops to unlock their potential and creates a model for better collaboration and innovation. More on

这篇关于什么是.dockerfile扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆