Skip to content

Instantly share code, notes, and snippets.

@Andorbal
Last active January 6, 2016 12:56
Show Gist options
  • Save Andorbal/7232858892662745605d to your computer and use it in GitHub Desktop.
Save Andorbal/7232858892662745605d to your computer and use it in GitHub Desktop.
Docker command to start an interactive dotnet session
Assuming you have Docker installed (https://docs.docker.com/linux/), you can run this as step zero of the 'Running the code' section of the tutorial at http://numl.net/getting-started/
docker run -it --name dotnet-numl -v "$PWD":/myapp -w /myapp microsoft/dotnet:latest
Then, you can run:
dotnet restore
dotnet run
If you've already created the container, then you can start and attach to it using:
docker start -ai dotnet-numl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment