Skip to content
masterclass Buddy

Docker · Command

docker init

Creates Docker starter files for a project. It asks setup questions, then generates files such as a Dockerfile and Compose file so the project can run in a container.

Last updated

Syntax

docker init [OPTIONS]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • .dockerignore
  • Dockerfile
  • compose.yaml
  • README.Docker.md
  • docker compose up --build

Source: docker init. Checked 2026-11-03.