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: docker/tutorials/docker-tutorial-share.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: "Tutorial: Share Docker apps in Visual Studio Code"
2
+
title: "Tutorial: Share container apps in Visual Studio Code"
3
3
titleSuffix: ""
4
-
description: 'Share Docker applications with the Docker Visual Studio Code Extension: create the container, build the container image, and start the container.'
4
+
description: 'Share container applications with the Container Tools Visual Studio Code Extension: create the container, build the container image, and start the container.'
5
5
author: ghogen
6
6
ms.author: ghogen
7
7
ms.service: vs-code
@@ -10,7 +10,7 @@ ms.date: 03/24/2023
10
10
# Under contractual obligation with Docker Inc. to provide this content. Contact is: nebuk89. Mike Morton has context on MSFT side, but has moved on to another role.
11
11
---
12
12
13
-
# Tutorial: Share a Docker app with Visual Studio Code
13
+
# Tutorial: Share a container app with Visual Studio Code
14
14
15
15
This tutorial is part two of a four-part series introducing [Docker](https://www.docker.com) for use with Visual Studio Code (VS Code).
16
16
@@ -23,7 +23,7 @@ In this tutorial, you learn how to:
23
23
24
24
## Prerequisites
25
25
26
-
This tutorial continues the previous tutorial, [Create a Docker app with Visual Studio Code](docker-tutorial.md). To continue here, you'll need the running todo list manager from part 1.
26
+
This tutorial continues the previous tutorial, [Create a container app with Visual Studio Code](docker-tutorial.md). To continue here, you'll need the running todo list manager from part 1.
27
27
28
28
## Update the code and replace the container
29
29
@@ -43,7 +43,7 @@ Let's make a few changes and learn about managing your containers.
43
43
44
44
Right-click the **getting-started** container and select **Remove**.
45
45
46
-

46
+

47
47
48
48
Or, from the command line, use the following command to get the container ID.
49
49
@@ -80,7 +80,7 @@ Let's make a few changes and learn about managing your containers.
80
80
## Share your image
81
81
82
82
Now that you've built an image, you can share it.
83
-
To share Docker images, use a Docker registry.
83
+
To share container images, use a container registry.
84
84
The default registry is Docker Hub, which is where all of the images we've used have come from.
85
85
86
86
To push an image, first, you need to create a repo on Docker Hub.
@@ -99,11 +99,11 @@ To push an image, first, you need to create a repo on Docker Hub.
99
99
100
100

101
101
102
-
1. In VS Code, in the Docker view, under **REGISTRIES**, click the plug icon, to connect to a registry, and choose **Docker Hub**.
102
+
1. In VS Code, in the Container Explorer, under **REGISTRIES**, click the plug icon, to connect to a registry, and choose **Docker Hub**.
103
103
104
104
Enter your Docker Hub account name and password.
105
105
106
-
1. In the Docker view of VS Code, under **IMAGES**, right-click the image tag, and select **Push**. Enter the namespace and the tag, or accept the defaults.
106
+
1. In the Container Explorer of VS Code, under **IMAGES**, right-click the image tag, and select **Push**. Enter the namespace and the tag, or accept the defaults.
107
107
108
108
1. To push to Docker Hub by using the command line, use this procedure.
Copy file name to clipboardExpand all lines: docker/tutorials/docker-tutorial.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: Get started with Docker apps in Visual Studio Code
2
+
title: Get started with container apps in Visual Studio Code
3
3
titleSuffix: ""
4
-
description: Create Docker applications with Visual Studio Code, the Docker Visual Studio Code Extension, Docker Desktop, and Docker Hub.
4
+
description: Create container applications with Visual Studio Code, the Container Tools Visual Studio Code Extension, Docker Desktop, and Docker Hub.
5
5
author: ghogen
6
6
ms.author: ghogen
7
7
ms.service: vs-code
@@ -10,11 +10,11 @@ ms.date: 05/30/2024
10
10
# Agreed with Docker Inc. to provide this content. Contact is: nebuk89. Mike Morton has context on MSFT side, but has moved on to another role.
11
11
---
12
12
13
-
# Tutorial: Create a Docker app with Visual Studio Code
13
+
# Tutorial: Create a container app with Visual Studio Code
14
14
15
15
This tutorial is the beginning of a four-part series introducing [Docker](https://www.docker.com) for use with Visual Studio Code (VS Code). You'll learn to create and run Docker containers, [persist data](tutorial-persist-data-layer-docker-app-with-vscode.md), and manage multiple containers with Docker Compose.
16
16
17
-
VS Code offers a Docker extension that lets you work with a local Docker Desktop service. Docker Desktop runs on your computer and manages your local containers, which are compact virtualized environments that provide a platform for building and running apps. Containers don't require the size and overhead of a complete operating system.
17
+
VS Code offers a Container Tools extension that lets you work with a local Docker Desktop service. Docker Desktop runs on your computer and manages your local containers, which are compact virtualized environments that provide a platform for building and running apps. Containers don't require the size and overhead of a complete operating system.
18
18
19
19
In this first tutorial, you learn how to:
20
20
@@ -26,7 +26,7 @@ In this first tutorial, you learn how to:
26
26
## Prerequisites
27
27
28
28
-[Visual Studio Code](https://code.visualstudio.com/download) installed.
29
-
-[Docker VS Code Extension](https://code.visualstudio.com/docs/containers/overview) installed.
29
+
-[Container Tools VS Code Extension](https://code.visualstudio.com/docs/containers/overview) installed.
30
30
-[Docker Desktop](https://docs.docker.com/desktop/) configured to use Linux containers.
31
31
- A [Docker Hub](https://hub.docker.com/signup) account. You can create an account for free.
32
32
@@ -42,8 +42,8 @@ This custom filesystem is provided by a *container image*.
42
42
The image contains everything needed to run an application, such as all dependencies, configuration, scripts, and binaries.
43
43
The image also contains other configuration for the container, such as environment variables, a default command to run, and other metadata.
44
44
45
-
After you install the Docker extension for VS Code, you can work with containers in VS Code.
46
-
In addition to context menus in the Docker pane, you can select **Terminal** > **New Terminal** to open a command-line window.
45
+
After you install the Container Tools extension for VS Code, you can work with containers in VS Code.
46
+
In addition to context menus in the Container Explorer, you can select **Terminal** > **New Terminal** to open a command-line window.
47
47
You can also run commands in a Bash window.
48
48
Unless specified, any command labeled as **Bash** can run in a Bash window or the VS Code terminal.
49
49
@@ -71,11 +71,11 @@ Unless specified, any command labeled as **Bash** can run in a Bash window or th
71
71
> docker run -dp 80:80 docker/getting-started
72
72
>```
73
73
74
-
1. In VS Code, selecttheDocker icon on the left to view the Docker extension.
74
+
1. In VS Code, selecttheContainers icon on the left to view the Container Explorer.
75
75
76
-

76
+

77
77
78
-
The Docker VS Code Extension shows you the containers running on your computer.
78
+
The Container Tools VS Code Extension shows you the containers running on your computer.
79
79
You can access container logs and manage container lifecycle, such as stop and remove.
80
80
81
81
The container name, **modest_shockley**in this example, is randomly created.
@@ -178,7 +178,7 @@ Now that you have an image, you can run the application.
178
178
The `-p` value creates a mapping between the host port 3000 and the container port 3000.
179
179
Without the port mapping, you wouldn't be able to access the application.
180
180
181
-
1. After a few seconds, in VS Code, in the Docker area, under **CONTAINERS**, right-click **getting-started** and select **Open in Browser**.
181
+
1. After a few seconds, in VS Code, in the Container Explorer, under **CONTAINERS**, right-click **getting-started** and select **Open in Browser**.
182
182
You can instead open your web browser to `http://localhost:3000`.
183
183
184
184
You should see the app running.
@@ -196,7 +196,7 @@ Keep everything that you've done so far to continue this series of tutorials.
196
196
Next, try part II of this series:
197
197
198
198
> [!div class="nextstepaction"]
199
-
> [Update and share a Docker app](docker-tutorial-share.md)
199
+
> [Update and share a container app](docker-tutorial-share.md)
200
200
201
201
Here are some resources that might be useful to you:
0 commit comments