Docker most complete tutorial - from the theoretical to the practical (XVIII)

Foreword

VS Code is a young editor, but it really is very sharp. By manual carefully old driver to take you to use VS Code Fun Docker-- believe after Read this, whether a beginner or a veteran, can be very convenient to the Docker Fun! Is the so-called "工欲善其事必先利其器", VS Code, you deserve!

table of Contents

⊙ using Visual Studio Code Fun Docker

⊙ official extension Docker

⊙Docker Compose extension

⊙ last

 

Use Visual Studio Code Fun Docker

Visual Studio is the universe as we know it first IDE, and Visual Studio Code (abbreviated VS Code) is Microsoft's open source cross-platform editor, since birth, has been fighting burst table - just four years, had been pulled We hold the event, and received the support of many developers. As shown below, the following is a Stack Overflow of 2018's most popular development tools developers findings:

 In 2018 developer survey of Stack Overflow, VSCode become the most popular development tools

 

Currently VisualStudio Code already has more than ten thousand plug-in, plug-ecological market is extremely rich. At the same time it was very friendly to all programming languages ​​(very good experience), including Docker. Next, we will talk about some support for Visual Studio Code Docker's.

 

The official extension Docker

VS Code provides some extensions to the Docker official support, we can open the "extended" view press Ctrl + Shift + X, then search docker to filter the results, and select Microsoft Docker extensions installed:

Docker can use this extension very easy to build from VisualStudio Code, container management and deployment of applications, mainly in the following points:

  • Automatically generating dockerfile, docker-compose.yml and .dockerignore file (F1 and search Docker by: adding to the file Docker Workspace);

 

  • 语法突出高亮显示以及docker-compose.yml和Dockerfile文件的智能提示

 

  • 悬停提示;

  • Dockerfile文件的语法检查和分析,会提示警告或错误;

  •  镜像搜索和智能提示;

  •  集成最常见的Docker命令(例如docker build,docker push等,需按F1唤起); 

 

    • Docker镜像、容器管理;

 

  • 其他
  • 对Azure的支持(这块我们就不具体介绍了);
  • .NET Core程序调试支持;
  • 连接docker-machine;
  • 在Linux上允许命令。

 

Docker Compose扩展插件 

我们可以按Ctrl + Shift + X打开“扩展”视图,然后搜索Docker Compose来安装此插件,扩展如下图所示:

 

该扩展支持以下功能:

  • 管理Compose的工程( Start、Stop、Up, Down);

  • 管理Compose服务(支持Up, Shell, Start, Stop, Restart,Build, Kill, Down);

 

  • 支持多个根;

 

最后

VS Code是一个年轻的编辑器,但是确实是非常犀利。通过这两个插件,无论是初学者还是老手,都可以非常方便的玩转容器了!所谓是“工欲善其事必先利其器”,VS Code,你值得拥有!

作者:雪雁
出处:http://www.cnblogs.com/codelove/

Guess you like

Origin www.cnblogs.com/zdalongren/p/12213078.html