Skip to content
Yeoman generator for Docker
Branch: master
Clone or download
NCarlsonMSFT Merge pull request #144 from floydpink/lock-down-dependencies-and-avo…

Upgrade to Circle CI v2.0 and Node.js v8
Latest commit 39f2dd3 Oct 11, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci upgrade CircleCI to 2.0 and use nodejs v8.11 Oct 5, 2018
generators/app Removing Application Insights Telemetry Apr 17, 2018
images Publishing version 0.0.24. Nov 25, 2015
test Removing Application Insights Telemetry Apr 17, 2018
.gitattributes Initial commit Oct 17, 2015
.yo-rc.json Add link to new code of conduct (#89) Jun 23, 2016
LICENSE Initial commit Oct 17, 2015 Removing Application Insights Telemetry Apr 17, 2018
jsconfig.json Initial commit Oct 17, 2015
package-lock.json fix vulnerabilities and lock down the dependencies' versions Oct 5, 2018


Package version CI Status Downloads

This generator creates a Dockerfile and scripts ( and dockerTask.ps1) that helps you build and run your project inside of a Docker container. The following project types are currently supported:

  • .NET Core
  • Node.js
  • Go

Quick demo


Longer walkthrough video

See the generator in action]



Install the Docker generator:

npm install -g generator-docker

Getting Started

Once yo docker and VS Code are installed, here's the few steps to debug your first app


  • From the root of your project, where your server.js file exists, open a bash or powershell window
yo docker
  • Answer the prompts, including your image name
  • Open the file you wish to debug and set a breakpoint
  • From VS Code, open the command palette (Mac: [⌘] + [P], Windows: [CTRL] + [P])
  • Enter: task composeForDebug This will compose your containers using the script
  • [F5] to start the node debugger within the container
  • As we use nodemon -L --debug-brk, the debugger will break on the first line of your main file, so that you can debug the initialization of your app

DotNet Core

  • From the root of your project open a bash or powershell window
yo docker
  • Answer the prompts, including your image name
  • Open the file you wish to debug and set a breakpoint
  • [F5] to start the .NET Core debugger within the container


See Contributing for guidelines


  • Q: Are you building an abstraction layer over docker apis?
    • A: No. These are your scripts. We're simply providing a starting point that docker developers would write themselves. These scripts are based on customers we've been working with.
  • Q: Are you taking feedback?

Version History


  • Removed Application Insights telemetry


  • Added support for .Net Core Console Apps.
  • Updated Docker for Windows beta address to http://localhost
  • BugFix: Special characters in project names are now ignored.


  • Switch to using docker-compose for build.
  • BugFix: Add usage of ASPNETCORE_URLS Environment variable to support urls other than localhost for .NET Core.


  • Added support for .Net Core RTM.


  • Added integrated debugging using [F5] for both Node.js and .NET Core.
  • Changed to always generate bash and PowerShell scripts to enable cross-platform development.
  • Changed compose file to use the image created by build (introduced a tag to disambiguate debug and release image).
  • Removed usage of docker-machine in favor of defaults for Docker for Windows and Docker for Mac.


  • Added support for ASP.Net Core 5 RC2.
  • BigFix: Optimized the creation of the node image to take advantage of caching.


  • Fix for issue #34 (Update ASP.NET dockerfile and add support for RC).


  • Replaced .CMD file with PowerShell script.
  • Adding .debug and .release compose files.
  • Replaced ADD command with COPY command in dockerfile.


  • BugFix: fixing issues with the path on Windows when using volume sharing in Node.js projects.


  • BugFix: making sure config is defined before reading a property.
  • BugFix: tracking if users opted-in or out for data collection.


  • Docker-compose.yml files are being created now for all project types.


See LICENSE for full license text.

You can’t perform that action at this time.