Skip to content

Commit c2f6f03

Browse files
get-started: update node version (#23464)
<!--Delete sections as needed --> ## Description Updated image to `node:lts-alpine` and tested in bind mounts, multi-container, and compose topics. `node:18-alpine` is no longer available. The image was already updated to `node:lts-alpine` in the initial topics of the workshop. lts (version 22) should be good until April 2027 ## Related issues or tickets https://docker.slack.com/archives/C04BMTUC41E/p1758903149468219 ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Editorial review Signed-off-by: Craig <[email protected]>
1 parent a9352d2 commit c2f6f03

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

content/get-started/workshop/06_bind_mounts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
181181
```console
182182
$ docker run -dp 127.0.0.1:3000:3000 \
183183
-w /app --mount type=bind,src="$(pwd)",target=/app \
184-
node:18-alpine \
184+
node:lts-alpine \
185185
sh -c "yarn install && yarn run dev"
186186
```
187187

@@ -192,7 +192,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
192192
command will run from
193193
- `--mount type=bind,src="$(pwd)",target=/app` - bind mount the current
194194
directory from the host into the `/app` directory in the container
195-
- `node:18-alpine` - the image to use. Note that this is the base image for
195+
- `node:lts-alpine` - the image to use. Note that this is the base image for
196196
your app from the Dockerfile
197197
- `sh -c "yarn install && yarn run dev"` - the command. You're starting a
198198
shell using `sh` (alpine doesn't have `bash`) and running `yarn install` to
@@ -227,7 +227,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
227227
```powershell
228228
$ docker run -dp 127.0.0.1:3000:3000 `
229229
-w /app --mount "type=bind,src=$pwd,target=/app" `
230-
node:18-alpine `
230+
node:lts-alpine `
231231
sh -c "yarn install && yarn run dev"
232232
```
233233

@@ -238,7 +238,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
238238
command will run from
239239
- `--mount "type=bind,src=$pwd,target=/app"` - bind mount the current
240240
directory from the host into the `/app` directory in the container
241-
- `node:18-alpine` - the image to use. Note that this is the base image for
241+
- `node:lts-alpine` - the image to use. Note that this is the base image for
242242
your app from the Dockerfile
243243
- `sh -c "yarn install && yarn run dev"` - the command. You're starting a
244244
shell using `sh` (alpine doesn't have `bash`) and running `yarn install` to
@@ -273,7 +273,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
273273
```console
274274
$ docker run -dp 127.0.0.1:3000:3000 ^
275275
-w /app --mount "type=bind,src=%cd%,target=/app" ^
276-
node:18-alpine ^
276+
node:lts-alpine ^
277277
sh -c "yarn install && yarn run dev"
278278
```
279279

@@ -284,7 +284,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
284284
command will run from
285285
- `--mount "type=bind,src=%cd%,target=/app"` - bind mount the current
286286
directory from the host into the `/app` directory in the container
287-
- `node:18-alpine` - the image to use. Note that this is the base image for
287+
- `node:lts-alpine` - the image to use. Note that this is the base image for
288288
your app from the Dockerfile
289289
- `sh -c "yarn install && yarn run dev"` - the command. You're starting a
290290
shell using `sh` (alpine doesn't have `bash`) and running `yarn install` to
@@ -319,7 +319,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
319319
```console
320320
$ docker run -dp 127.0.0.1:3000:3000 \
321321
-w //app --mount type=bind,src="/$(pwd)",target=/app \
322-
node:18-alpine \
322+
node:lts-alpine \
323323
sh -c "yarn install && yarn run dev"
324324
```
325325

@@ -330,7 +330,7 @@ You can use the CLI or Docker Desktop to run your container with a bind mount.
330330
command will run from
331331
- `--mount type=bind,src="/$(pwd)",target=/app` - bind mount the current
332332
directory from the host into the `/app` directory in the container
333-
- `node:18-alpine` - the image to use. Note that this is the base image for
333+
- `node:lts-alpine` - the image to use. Note that this is the base image for
334334
your app from the Dockerfile
335335
- `sh -c "yarn install && yarn run dev"` - the command. You're starting a
336336
shell using `sh` (alpine doesn't have `bash`) and running `yarn install` to

content/get-started/workshop/07_multi_container.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ You can now start your dev-ready container.
218218
-e MYSQL_USER=root \
219219
-e MYSQL_PASSWORD=secret \
220220
-e MYSQL_DB=todos \
221-
node:18-alpine \
221+
node:lts-alpine \
222222
sh -c "yarn install && yarn run dev"
223223
```
224224

@@ -234,7 +234,7 @@ You can now start your dev-ready container.
234234
-e MYSQL_USER=root `
235235
-e MYSQL_PASSWORD=secret `
236236
-e MYSQL_DB=todos `
237-
node:18-alpine `
237+
node:lts-alpine `
238238
sh -c "yarn install && yarn run dev"
239239
```
240240

@@ -250,7 +250,7 @@ You can now start your dev-ready container.
250250
-e MYSQL_USER=root ^
251251
-e MYSQL_PASSWORD=secret ^
252252
-e MYSQL_DB=todos ^
253-
node:18-alpine ^
253+
node:lts-alpine ^
254254
sh -c "yarn install && yarn run dev"
255255
```
256256

@@ -265,7 +265,7 @@ You can now start your dev-ready container.
265265
-e MYSQL_USER=root \
266266
-e MYSQL_PASSWORD=secret \
267267
-e MYSQL_DB=todos \
268-
node:18-alpine \
268+
node:lts-alpine \
269269
sh -c "yarn install && yarn run dev"
270270
```
271271

content/get-started/workshop/08_using_compose.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ $ docker run -dp 127.0.0.1:3000:3000 \
4646
-e MYSQL_USER=root \
4747
-e MYSQL_PASSWORD=secret \
4848
-e MYSQL_DB=todos \
49-
node:18-alpine \
49+
node:lts-alpine \
5050
sh -c "yarn install && yarn run dev"
5151
```
5252

@@ -58,15 +58,15 @@ You'll now define this service in the `compose.yaml` file.
5858
```yaml
5959
services:
6060
app:
61-
image: node:18-alpine
61+
image: node:lts-alpine
6262
```
6363
6464
2. Typically, you will see `command` close to the `image` definition, although there is no requirement on ordering. Add the `command` to your `compose.yaml` file.
6565

6666
```yaml
6767
services:
6868
app:
69-
image: node:18-alpine
69+
image: node:lts-alpine
7070
command: sh -c "yarn install && yarn run dev"
7171
```
7272

@@ -75,7 +75,7 @@ You'll now define this service in the `compose.yaml` file.
7575
```yaml
7676
services:
7777
app:
78-
image: node:18-alpine
78+
image: node:lts-alpine
7979
command: sh -c "yarn install && yarn run dev"
8080
ports:
8181
- 127.0.0.1:3000:3000
@@ -89,7 +89,7 @@ You'll now define this service in the `compose.yaml` file.
8989
```yaml
9090
services:
9191
app:
92-
image: node:18-alpine
92+
image: node:lts-alpine
9393
command: sh -c "yarn install && yarn run dev"
9494
ports:
9595
- 127.0.0.1:3000:3000
@@ -103,7 +103,7 @@ You'll now define this service in the `compose.yaml` file.
103103
```yaml
104104
services:
105105
app:
106-
image: node:18-alpine
106+
image: node:lts-alpine
107107
command: sh -c "yarn install && yarn run dev"
108108
ports:
109109
- 127.0.0.1:3000:3000
@@ -185,7 +185,7 @@ At this point, your complete `compose.yaml` should look like this:
185185
```yaml
186186
services:
187187
app:
188-
image: node:18-alpine
188+
image: node:lts-alpine
189189
command: sh -c "yarn install && yarn run dev"
190190
ports:
191191
- 127.0.0.1:3000:3000

0 commit comments

Comments
 (0)