mirror of https://github.com/docker/docs.git
feat: adding install extension point and image
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
51c5636494
commit
41e2d0c9a1
|
@ -144,32 +144,36 @@ Now that you have a repository, you are ready to build and push your image. An i
|
|||
{{< /tab >}}
|
||||
{{< tab name="VS Code" >}}
|
||||
|
||||
1. Open Visual Studio Code. In the **File** menu, select **Open Folder**. Choose **Clone Git Repository** and paste this URL: [https://github.com/docker/getting-started-todo-app](https://github.com/docker/getting-started-todo-app)
|
||||
1. Open Visual Studio Code. Ensure you have the **Docker extension for VS Code** installed from [Extension Marketplace](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker).
|
||||
|
||||

|
||||
|
||||
2. In the **File** menu, select **Open Folder**. Choose **Clone Git Repository** and paste this URL: [https://github.com/docker/getting-started-todo-app](https://github.com/docker/getting-started-todo-app)
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
2. Right-click the `Dockerfile` and select the **Build Image...** menu item.
|
||||
3. Right-click the `Dockerfile` and select the **Build Image...** menu item.
|
||||
|
||||
|
||||

|
||||
|
||||
3. In the dialog that appears, enter a name of `DOCKER_USERNAME/getting-started-todo-app`, replacing `DOCKER_USERNAME` with your Docker username.
|
||||
4. In the dialog that appears, enter a name of `DOCKER_USERNAME/getting-started-todo-app`, replacing `DOCKER_USERNAME` with your Docker username.
|
||||
|
||||
4. After pressing **Enter**, you'll see a terminal appear where the build will occur. Once it's completed, feel free to close the terminal.
|
||||
5. After pressing **Enter**, you'll see a terminal appear where the build will occur. Once it's completed, feel free to close the terminal.
|
||||
|
||||
5. Open the Docker Extension for VS Code by selecting the Docker logo in the left nav menu.
|
||||
6. Open the Docker Extension for VS Code by selecting the Docker logo in the left nav menu.
|
||||
|
||||
6. Find the image you created. It'll have a name of `docker.io/DOCKER_USERNAME/getting-started-todo-app`.
|
||||
7. Find the image you created. It'll have a name of `docker.io/DOCKER_USERNAME/getting-started-todo-app`.
|
||||
|
||||
7. Expand the image to view the tags (or different versions) of the image. You should see a tag named `latest`, which is the default tag given to an image.
|
||||
8. Expand the image to view the tags (or different versions) of the image. You should see a tag named `latest`, which is the default tag given to an image.
|
||||
|
||||
8. Right-click on the **latest** item and select the **Push...** option.
|
||||
9. Right-click on the **latest** item and select the **Push...** option.
|
||||
|
||||

|
||||
|
||||
9. Press **Enter** to confirm and then watch as your image is pushed to Docker Hub. Depending on your upload speeds, it might take a moment to push the image.
|
||||
10. Press **Enter** to confirm and then watch as your image is pushed to Docker Hub. Depending on your upload speeds, it might take a moment to push the image.
|
||||
|
||||
Once the upload is finished, feel free to close the terminal.
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 169 KiB |
Loading…
Reference in New Issue