Skip to content

Devin-Pi/Tutorial_for_VScode_Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Tutorial for Vscode & Docker

This tutorial can help you learn how to use docker in VScode.

Pre-requirments

Usage

Install extentions in VScode

  • Docker, Dev Container.
    1716637066377.png 1716637117064.png

Create & overwrite Dev Configuration Files

  • Add the dev configuration files shown as follows:
  1. Click the left bottom of the VScode and select Add Dev Container Configuration Files. 1716637664941.png
  2. Select Docker Outside of Docker Compose. 1716637687995.png
  3. Then click ok until the .devcontainer folder was created. You can find there are 3 files in this folder. Based on your requirements, please overwrite these three files. Generally, using devcontainer.json and dockercompose.yaml can meet the requirements of the Deep Learning. We give a basic example shown as follows:

This is the devcontainer.json: 1716637577353.png This is the docker-compose.yaml: 1716637594582.png

Create & Open the container

After overwriting the files in .devcontainer, lets open the container.

  • Click the left bottom of the VScode, and select Reopen in Container shown as follows:

1716689565295.png

Then a new window is created. Please watch the left bottom of VScode, the DevConiner will display. 1716691635198.png

Now, lets enjoy the Docker journey!😊

Note:You can find an example for .devcontainer in this link .devcontainer.

If you find our work useful in your research, please consider giving a star😊!

About

This repo is for the Tutorial for VScode & Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published