You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _data/init-cli/docker_init.yaml
+38-14
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,9 @@ long: |-
20
20
After running `docker init`, you can choose one of the following templates:
21
21
22
22
* Go: Suitable for a Go server application.
23
-
* Python: Suitable for a Python server application.
24
23
* Node: Suitable for a Node server application.
24
+
* Python: Suitable for a Python server application.
25
+
* Rust: Suitable for a Rust server application.
25
26
* Other: General purpose starting point for containerizing your application.
26
27
27
28
After `docker init` has completed, you may need to modify the created files and tailor them to your project. Visit the following topics to learn more about the files:
@@ -70,11 +71,12 @@ examples: |-
70
71
> Go - (detected) suitable for a Go server application
71
72
Python - suitable for a Python server application
72
73
Node - suitable for a Node server application
74
+
Rust - suitable for a Rust server application
73
75
Other - general purpose starting point for containerizing your application
74
76
Don't see something you need? Let us know!
75
77
Quit
76
78
```
77
-
79
+
78
80
### Example of selecting Go
79
81
80
82
The following example shows the prompts that appear after selecting `Go` and example input.
@@ -84,7 +86,7 @@ examples: |-
84
86
? What version of Go do you want to use? 1.20
85
87
? What's the relative directory (with a leading .) of your main package? .
86
88
? What port does your server listen on? 3333
87
-
89
+
88
90
CREATED: .dockerignore
89
91
CREATED: Dockerfile
90
92
CREATED: compose.yaml
@@ -98,8 +100,34 @@ examples: |-
98
100
Your application will be available at http://localhost:3333
99
101
```
100
102
103
+
### Example of selecting Node
104
+
105
+
The following example shows the prompts that appear after selecting `Node` and example input.
106
+
107
+
```console
108
+
? What application platform does your project use? Node
109
+
? What version of Node do you want to use? 18
110
+
? Which package manager do you want to use? yarn
111
+
? Do you want to run "yarn run build" before starting your server? Yes
112
+
? What directory is your build output to? (comma-separate if multiple) output
113
+
? What command do you want to use to start the app? node index.js
114
+
? What port does your server listen on? 8000
115
+
116
+
CREATED: .dockerignore
117
+
CREATED: Dockerfile
118
+
CREATED: compose.yaml
119
+
120
+
✔ Your Docker files are ready!
121
+
122
+
Take a moment to review them and tailor them to your application.
123
+
124
+
When you're ready, start your application by running: docker compose up --build
125
+
126
+
Your application will be available at http://localhost:8000
127
+
```
128
+
101
129
### Example of selecting Python
102
-
130
+
103
131
The following example shows the prompts that appear after selecting `Python` and example input.
104
132
105
133
```console
@@ -121,19 +149,15 @@ examples: |-
121
149
Your application will be available at http://localhost:8000
122
150
```
123
151
124
-
### Example of selecting Node
152
+
### Example of selecting Rust
125
153
126
-
The following example shows the prompts that appear after selecting `Node` and example input.
154
+
The following example shows the prompts that appear after selecting `Rust` and example input.
127
155
128
156
```console
129
-
? What application platform does your project use? Node
130
-
? What version of Node do you want to use? 18
131
-
? Which package manager do you want to use? yarn
132
-
? Do you want to run "yarn run build" before starting your server? Yes
133
-
? What directory is your build output to? (comma-separate if multiple) output
134
-
? What command do you want to use to start the app? node index.js
157
+
? What application platform does your project use? Rust
158
+
? What version of Rust do you want to use? 1.70.0
135
159
? What port does your server listen on? 8000
136
-
160
+
137
161
CREATED: .dockerignore
138
162
CREATED: Dockerfile
139
163
CREATED: compose.yaml
@@ -143,7 +167,7 @@ examples: |-
143
167
Take a moment to review them and tailor them to your application.
144
168
145
169
When you're ready, start your application by running: docker compose up --build
146
-
170
+
147
171
Your application will be available at http://localhost:8000
0 commit comments