What is a Dockerfile?
Experience Level: Junior
Tags: Docker
Answer
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. Using docker build users can create an automated build that executes several command-line instructions in succession.
Related Docker job interview questions
What is Docker Swarm?
Docker JuniorWhat is Docker Compose?
Docker JuniorWhat are the key building stones of Docker architecture?
Docker JuniorWhat is Docker Hub?
Docker JuniorWhat is a difference between Docker container and Docker image?
Docker Junior