What is the programming language used in dockerfile and docker-compose files
Asked Answered
D

2

10

What is the programming language used in docker file and docker-compose files.

We use dockerfile to build docker images. So what is the language used to develop a dockerfile?

Deem answered 16/11, 2019 at 15:4 Comment(1)
It's not really a language, it's a file format called YAML. yaml.orgUnofficial
E
17
  • Docker is written in the GO language
  • A Dockerfile is just a text file. It is a script that contains collections of commands and instructions that will be automatically executed in sequence in the docker environment for building a new docker image.
  • A docker-compose.yml file is used for docker-compose, if you are using that feature of Docker.
Excavator answered 17/11, 2019 at 5:18 Comment(2)
Thank you for your response. Question: If its just a text file we see few instructions predefined like FROM, ENV, COPY, USER,CMD. As part of what we can define these predefined keywords.Deem
Currently there are about a dozen different set of commands which Dockerfiles can contain to have Docker build an image. These commands are understood by the docker daemon to build an image.Excavator
M
0

Docker Compose configuration files follow YAML Language Syntax, as the extension of the file compose.yaml suggests.

Materse answered 9/8, 2024 at 12:0 Comment(1)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Towroy

© 2022 - 2025 — McMap. All rights reserved.