Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 332
user8961277 Avatar asked Nov 16 '19 15:11

user8961277


People also ask

What is Docker compose and Dockerfile?

A Dockerfile is a simple text file that contains the commands a user could call to assemble an image whereas Docker Compose is a tool for defining and running multi-container Docker applications. Docker Compose define the services that make up your app in docker-compose.

Is Dockerfile same as Docker compose?

The key difference between the Dockerfile and docker-compose is that the Dockerfile describes how to build Docker images, while docker-compose is used to run Docker containers.

Is Docker compose Python?

Note: Docker Compose requires Python 3.6 or later.

What is Dockerfile coding?

Docker can build images automatically by reading the instructions from a Dockerfile . A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. This page describes the commands you can use in a Dockerfile .


1 Answers

  • 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.
like image 73
i4nk1t Avatar answered Nov 05 '22 06:11

i4nk1t