- Digitalizzazione e AI: le priorità dei CIO sono il change management e la formazione
- “프론트엔드 개발에 특히 유용”··· 앤트로픽, ‘생각 깊이’ 조절 가능한 클로드 3.7 소넷 공개
- 카스퍼스키, 호주 정부의 사용 금지 조치에 “기술 평가 없이 결정” 주장
- Questions arise about reasons why Microsoft has cancelled data center lease plans
- ‘전 세계 2위 거래소’ 바이비트서 15억 달러 암호화폐 사라져··· 북한 개입 확인
Docker Init: Initialize Dockerfiles and Compose files with a single CLI command | Docker

Docker has revolutionized the way developers build, package, and deploy their applications. Docker containers provide a lightweight, portable, and consistent runtime environment that can run on any infrastructure. And now, the Docker team has developed docker init
, a new command-line interface (CLI) command introduced as a beta feature that simplifies the process of adding Docker to a project (Figure 1).
Note: Docker Init should not be confused with the internally -used docker-init
executable, which is invoked by Docker when utilizing the –init
flag with the docker run
command.


Create assets automatically
The new docker init
command automates the creation of necessary Docker assets, such as Dockerfiles, Compose files, and .dockerignore
files, based on the characteristics of the project. By executing the docker init
command, developers can quickly containerize their projects. Docker init is a valuable tool for developers who want to experiment with Docker, learn about containerization, or integrate Docker into their existing projects.
To use docker init
, developers need to upgrade to the version 4.19.0 or later of Docker Desktop and execute the command in the target project folder. Docker init will detect the project definitions, and it will automatically generate the necessary files to run the project in Docker.
The current Beta release of docker init
supports Go, Node, and Python, and our development team is actively working to extend support for additional languages and frameworks, including Java, Rust, and .NET. If there is a language or stack that you would like to see added or if you have other feedback about docker init
, let us know through our Google form.
In conclusion, docker init
is a valuable tool for developers who want to simplify the process of adding Docker support to their projects. It automates the creation of necessary Docker assets and can help standardize the creation of Docker assets across different projects. By enabling developers to focus on developing their applications and reducing the risk of errors and inconsistencies, Docker init can help accelerate the adoption of Docker and containerization.
See Docker Init in action
To see docker init
in action, check out the following overview video by Francesco Ciulla, which demonstrates building the required Docker assets to your project.
Check out the documentation to learn more.