diff --git a/content/engine/reference/commandline/init.md b/content/engine/reference/commandline/init.md index 8b46853e36..1a5b2f8323 100644 --- a/content/engine/reference/commandline/init.md +++ b/content/engine/reference/commandline/init.md @@ -11,7 +11,4 @@ suggest a change to the text that appears here, open a ticket or pull request in the source repository on GitHub: https://github.com/docker/docker-init ---> -> **Beta** -> -> The Docker Init plugin is currently in [Beta](../../../release-lifecycle.md#beta). Docker recommends that you do not use this in production environments. \ No newline at end of file +--> \ No newline at end of file diff --git a/data/init-cli/docker_init.yaml b/data/init-cli/docker_init.yaml index ccc466d226..b751aabf8c 100644 --- a/data/init-cli/docker_init.yaml +++ b/data/init-cli/docker_init.yaml @@ -3,7 +3,7 @@ short: Creates Docker-related starter files for your project long: |- Initialize a project with the files necessary to run the project in a container. - Docker Desktop 4.18 and later provides the Docker Init plugin with the `docker init` CLI command. Run `docker init` in your project directory to be walked through the creation of the following files with sensible defaults for your project: + Docker Desktop provides the `docker init` CLI command. Run `docker init` in your project directory to be walked through the creation of the following files with sensible defaults for your project: * .dockerignore * Dockerfile @@ -22,6 +22,7 @@ long: |- * ASP.NET Core: Suitable for an ASP.NET Core application. * Go: Suitable for a Go server application. + * Java: suitable for a Java application that uses Maven and packages as an uber jar. * Node: Suitable for a Node server application. * PHP with Apache: Suitable for a PHP web application. * Python: Suitable for a Python server application. @@ -73,7 +74,8 @@ examples: |- ? What application platform does your project use? [Use arrows to move, type to filter] > PHP with Apache - (detected) suitable for a PHP web application - Go - (detected) suitable for a Go server application + Go - suitable for a Go server application + Java - suitable for a Java application that uses Maven and packages as an uber jar Python - suitable for a Python server application Node - suitable for a Node server application Rust - suitable for a Rust server application @@ -243,6 +245,32 @@ examples: |- Consult README.Docker.md for more information about using the generated files. ``` + ### Example of selecting Java + + The following example shows the prompts that appear after selecting `Java` and example input. + + ```console + ? What application platform does your project use? Java + ? What version of Java do you want to use? 17 + ? What's the relative directory (with a leading .) for your app? ./src + ? What port does your server listen on? 9000 + + CREATED: .dockerignore + CREATED: Dockerfile + CREATED: compose.yaml + CREATED: README.Docker.md + + ✔ Your Docker files are ready! + + Take a moment to review them and tailor them to your application. + + When you're ready, start your application by running: docker compose up --build + + Your application will be available at http://localhost:9000 + + Consult README.Docker.md for more information about using the generated files. + ``` + ### Example of selecting Other The following example shows the output after selecting `Other`. diff --git a/data/toc.yaml b/data/toc.yaml index 9e4dd375ca..852e9078c7 100644 --- a/data/toc.yaml +++ b/data/toc.yaml @@ -526,7 +526,7 @@ Reference: - path: /engine/reference/commandline/info/ title: docker info - path: /engine/reference/commandline/init/ - title: docker init (Beta) + title: docker init - path: /engine/reference/commandline/inspect/ title: docker inspect - path: /engine/reference/commandline/login/