none
Error deploying from Visual Studio Tools for Docker to Win Server 2016 - microsoft/aspnet:1.0.0-beta5 manifest unknown RRS feed

  • Question

  • Hi there,

    I think I understand what this issue is relating to, but not entirely sure how to fix it.

    It's because I just have the Windows Core Server image container and no others installed right?  And this needs one with asp.net beta 5 installed?

    What's the best way to resolve this?

    • Create my own image?  Do I have to name it "microsoft/aspnet:1.0.0-beta5" ?
    • Download an image from somewhere and install it?
    • None of the above and I'm completely wrong in my assumption?

    Any help would be greatly appreciated, it's taken long enough getting VS to connect to the server and am stuck again.

    Thanks in advance!!

    Thursday, August 27, 2015 11:04 AM

Answers

  • Done it now, although the app isn't working as such due to another error, as it's unrelated I'll write down what I've done to get this far and then start a new thread for the new issue,

    So firstly I created a new container in PowerShell,

    $newcontainer= New-Container -Name "newcontainer"-ContainerImageName newimage -SwitchName "Virtual Switch"

    once created, I started it and then created a session on it,

    Start-Container $newcontainer

    Enter-PSSession -ContainerId $newcontainer.ContainerId -RunAsAdministrator

    Now I had to install ASP.NET 5, so from instructions on the following site

    http://docs.asp.net/en/latest/getting-started/installing-on-windows.html


    I ran these commands (this first one was changed as it is telling you how to do it from a command prompt, but we are using PowerShell so it won't work),

    So don't run this,

    @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

    do this instead,

    wget https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1 -OutFile "c:\dnvminstall.ps1" -UseBasicParsing

    then

    cd c:\

    .\dnvminstall.ps1

    Once that was done, I updated dnvm just incase and then installed the framework my app is built for with the following commands,

    dnvm update-self

    dnvm -install 1.0.0-beta5

    Next thing to do was to make a directory for my asp.net 5 app

    so I done it like this,

    cd c:\

    mkdir app

    cd app

    mkdir MyProject

    cd MyProject

    Now download a zip of my published app, published from Visual Studio 2015 to a local file system folder, zipped and uploaded,

    wget http://urltomyzip -OutFile "c:\app\MyProject\MyProject.zip" -UseBasicParsing

    Once downloaded, unzip it with the following commands,

    [System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem')
    [System.IO.Compression.ZipFile]::ExtractToDirectory("c:\app\MyProject\MyProject.zip", "c:\app\MyProject\")

    So we're done now, but my app isn't working, I'm getting a missing library exception for libuv... So will ask that in another thread.


    • Edited by Trolololoooo Thursday, August 27, 2015 1:33 PM Formatting nightmare, gotta love/hate the WYSIWYG editor on this site
    • Marked as answer by Trolololoooo Thursday, August 27, 2015 1:33 PM
    Thursday, August 27, 2015 1:31 PM

All replies

  • Try

    docker search anything

    Does this list the image you need?  Then try

    docker pull  <imagename>

    Hope this Helps !

    Thursday, August 27, 2015 11:39 AM
  • It doesn't have one with asp.net, but, I notice a dnx-clr one, so I will try that and hopefully edit my docker file so that it publishes to it.  My project is targeted for dnx-clr rather than full framework so with any luck that will work.  I'll report back once I've tried it.
    Thursday, August 27, 2015 11:43 AM
  • Currently sitting on

    VERBOSE: Step 0 : FROM microsoft/dnx-clr
    VERBOSE:  ---> 156a0b59c5a8
    VERBOSE: Step 1 : ADD . /app

    So it picked up the dnx-clr container okay by the looks of things.  Hopefully it gets further, been a few minutes now and it's only a small project.


    • Proposed as answer by Erico2010 Wednesday, November 16, 2016 11:54 PM
    Thursday, August 27, 2015 11:51 AM
  • No joy, after quite a while I get the following error,

    ---

    Severity Code Description Project File Line
    Error An error occured during publish.
    The command [docker -H tcp://192.168.15.5:2375 run -t -d -p 80:80 -e "server.urls=http://*:80" --name 80_80 MyProject] exited with code [1]: beb4f5beb138cb2857ca05dad3fd5205e652e8a62007db1346c004f4fda66149
    Error response from daemon: Cannot start container beb4f5beb138cb2857ca05dad3fd5205e652e8a62007db1346c004f4fda66149: HCSShim::CreateProcessInComputeSystem - Win32 API call returned error r1=2147942402 err=The system cannot find the file specified. id=beb4f5beb138cb2857ca05dad3fd5205e652e8a62007db1346c004f4fda66149 params={ ./kestrel \app map[server.urls:http://*:80] true [0 0]}
    Please visit http://go.microsoft.com/fwlink/?LinkID=529706 for troubleshooting guide. MyProject 0

    I can see my image listed with the "docker images" command.  So i'm going to try to log into the container and see if I can launch the app myself.

    Thursday, August 27, 2015 12:11 PM
  • Get-Container is not listing anything... so will try and make a container from the image that is listed perhaps?
    Thursday, August 27, 2015 12:14 PM
  • Well this is getting depressing, the Windows container feature doesn't even know about the containers that Visual Studio has made in docker.  I see only one image and that's the core os.  Any idea how to fix this?
    Thursday, August 27, 2015 12:18 PM
  • So there is a docker container listed which should be it, but when I try and start it, using docker commands, I get,

    PS C:\ProgramData\docker\containers> docker start beb4f5beb138
    Error response from daemon: Cannot start container beb4f5beb138: HCSShim::CreateProcessInComputeSystem - Win32 API call returned error r1=2147942402 err=The system cannot find the file specified. id=beb4f5beb138cb2857ca05dad3fd5205e652e8a62007db1346c004f4fda66149 params={ ./kestrel \app map[server.urls:http://*:80] true [0 0]}
    Error: failed to start containers: [beb4f5beb138]

    Thursday, August 27, 2015 12:23 PM
  • Okay so more info, even though the installation of the containers feature seemed to work, it didn't with the Windows part, the docker commands can see my server image of the os core,  Get-ContainerImage can't.
    Thursday, August 27, 2015 12:39 PM
  • Restarting the machine has got it back.  What I'm going to do is create a core container and install asp.net 5 on it myself and then create an image from that.  Then once created I will try and manually deploy my app into that.  This *has* to work!!!
    Thursday, August 27, 2015 12:44 PM
  • Done it now, although the app isn't working as such due to another error, as it's unrelated I'll write down what I've done to get this far and then start a new thread for the new issue,

    So firstly I created a new container in PowerShell,

    $newcontainer= New-Container -Name "newcontainer"-ContainerImageName newimage -SwitchName "Virtual Switch"

    once created, I started it and then created a session on it,

    Start-Container $newcontainer

    Enter-PSSession -ContainerId $newcontainer.ContainerId -RunAsAdministrator

    Now I had to install ASP.NET 5, so from instructions on the following site

    http://docs.asp.net/en/latest/getting-started/installing-on-windows.html


    I ran these commands (this first one was changed as it is telling you how to do it from a command prompt, but we are using PowerShell so it won't work),

    So don't run this,

    @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

    do this instead,

    wget https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1 -OutFile "c:\dnvminstall.ps1" -UseBasicParsing

    then

    cd c:\

    .\dnvminstall.ps1

    Once that was done, I updated dnvm just incase and then installed the framework my app is built for with the following commands,

    dnvm update-self

    dnvm -install 1.0.0-beta5

    Next thing to do was to make a directory for my asp.net 5 app

    so I done it like this,

    cd c:\

    mkdir app

    cd app

    mkdir MyProject

    cd MyProject

    Now download a zip of my published app, published from Visual Studio 2015 to a local file system folder, zipped and uploaded,

    wget http://urltomyzip -OutFile "c:\app\MyProject\MyProject.zip" -UseBasicParsing

    Once downloaded, unzip it with the following commands,

    [System.Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem')
    [System.IO.Compression.ZipFile]::ExtractToDirectory("c:\app\MyProject\MyProject.zip", "c:\app\MyProject\")

    So we're done now, but my app isn't working, I'm getting a missing library exception for libuv... So will ask that in another thread.


    • Edited by Trolololoooo Thursday, August 27, 2015 1:33 PM Formatting nightmare, gotta love/hate the WYSIWYG editor on this site
    • Marked as answer by Trolololoooo Thursday, August 27, 2015 1:33 PM
    Thursday, August 27, 2015 1:31 PM
  • Hi Trolololoooo,

    We've created some tools for Visual Studio to help with your ASP.NET 5 apps.

    http://aka.ms/DockerToolsForVS

    The beauty here is we do just what you'd do from a command line. And we provide the scripts and command lines you need. 

    Here's a video for what's done:

    https://channel9.msdn.com/Blogs/containers/Quick-Start-Provisioning-Containers-using-Visual-Studio


    Steve Lasker - PM/Technical Lead - Microsoft UiFX & Services Team

    Thursday, August 27, 2015 6:13 PM
  • Hi Steve,

    I'm Nick from the GitHub page, you asked me to continue my questions here. It was the tools I was using the publish when this error occurred, so I setup a container myself.

    Its still not working, with another error, regarding missing libuv. Apparently this is fixed by building in x64, this is impossible in visual studio as it build x86 no matter what I tell it to produce. I have another question open, will link to it in a but but can't at current as I'm on my phone.  Just to clarify my project is dnxcore5.


    Somewhere out there...

    Thursday, August 27, 2015 6:26 PM