Get Started with .NET and Docker

Sign in to queue

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 https://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

  • User profile image
    thedeomax

    Very informative!! Thanks!

Add Your 2 Cents