Get Started with .NET and Docker

Sign in to queue

Description

Get a quick demo of the Visual Studio features that make getting started with .NET Core and Docker easy, as well as showing the advantages of being able to debug inside a container with Visual Studio.

Try out our Docker images:
For more information, check out this course on Microsoft Virtual Academy:

Tags:

Docker, .NET

Day:

0

Session Type:

Pre-recorded

Code:

T122

Embed

Download

Download this episode

For more information, check out this course on Microsoft Virtual Academy:

The Discussion

  • User profile image
    hector mota

    if you get an error like this.....just reduce the memory in docker windows. MAKE SURE TO NOT INSTALL DOCKER TOOLS.....

    Severity Code Description Project File Line Suppression State
    Error MSB4018 The "PrepareForLaunch" task failed unexpectedly.
    Microsoft.DotNet.Docker.CommandLineClientException: Creating network "dockercompose2700485375_default" with the default driver
    Building dockerdemo1
    Creating dockercompose2700485375_dockerdemo1_1
    ERROR: for dockerdemo1 Cannot start service dockerdemo1: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/C/Users/hpnotebook/documents/visual studio 2017/Projects/DockerDemo1/DockerDemo1\\\" to rootfs \\\"/var/lib/docker/overlay2/caaeaf549efcada3e99ff349cd5a952c543f2c99838dbc1d69982ed558c760ed/merged\\\" at \\\"/app\\\" caused \\\"stat /C/Users/hpnotebook/documents/visual studio 2017/Projects/DockerDemo1/DockerDemo1: input/output error\\\"\""
    Encountered errors while bringing up the project..

    For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting ---> Microsoft.DotNet.Docker.CommandLineClientException: Creating network "dockercompose2700485375_default" with the default driver
    Building dockerdemo1
    Creating dockercompose2700485375_dockerdemo1_1
    ERROR: for dockerdemo1 Cannot start service dockerdemo1: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/C/Users/hpnotebook/documents/visual studio 2017/Projects/DockerDemo1/DockerDemo1\\\" to rootfs \\\"/var/lib/docker/overlay2/caaeaf549efcada3e99ff349cd5a952c543f2c99838dbc1d69982ed558c760ed/merged\\\" at \\\"/app\\\" caused \\\"stat /C/Users/hpnotebook/documents/visual studio 2017/Projects/DockerDemo1/DockerDemo1: input/output error\\\"\""
    Encountered errors while bringing up the project.
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.DotNet.Docker.DockerComposeClient.<ExecuteAsync>d__18.MoveNext()
    --- End of inner exception stack trace ---
    at Microsoft.DotNet.Docker.DockerComposeClient.<ExecuteAsync>d__18.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.DotNet.Docker.DockerWorkspace.<PrepareForLaunchAsync>d__14.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.DotNet.Docker.BuildTasks.DockerBaseTask.Execute()
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Docker\Microsoft.VisualStudio.Docker.Compose.targets 192

Add Your 2 Cents