Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

access to docker images #9640


User avatar
0
sedulen created

is there a process for requesting access to the zero/... Docker images?

I am experimenting with using the Docker functionality in ASP.NET Zero (I'm on v6.9, but it looks like the build & docker scripts in v9.0 are similar).

when I run the build script I encounter the following: Error: No such image: zero/host Sending build context to Docker daemon 467MB Error response from daemon: the Dockerfile (Dockerfile) cannot be empty Error: No such image: zero/ng Sending build context to Docker daemon 225.3MB Error response from daemon: the Dockerfile (Dockerfile) cannot be empty and when I run the up script that is in the build/outputs directory, I encounter the following: `Pulling zero_host (zero/host:)... ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y Pulling zero_host (zero/host:)... ERROR: pull access denied for zero/host, repository does not exist or may require 'docker login': denied: requested access to the resource is denied`

thanks! -Brian


9 Answer(s)
  • User Avatar
    0
    sedulen created

    I think I see the issue. In my .Host project, my Dockerfile looks different from what I see when I look back at my base 6.9.0 project. So I may be causing my own issue here. I think I attempted to work with the Dockerfile a few months back and may have inadvertently made some changes. I will look back at my revision history to see if I accidentally changed anything in the default template regarding Docker.

  • User Avatar
    0
    sedulen created

    It appears that was, indeed, my issue.

    I had previously modified the Dockerfile at the root of the .Host project to try and make it fully contained, rather than using the build scripts that were provided as part of the template.

    To note, the only change I found I had to make was in the build-with-ng.ps1 script, the following line seems to give me issue:

    Copy-Item (Join-Path $ngFolder "dist") (Join-Path $outputFolder "ng/") -Recurse

    When I look at my angular.json file, I see:

      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "wwwroot/dist",
    

    So if I change that Copy-Item line to be: Copy-Item (Join-Path $ngFolder "wwwroot/dist") (Join-Path $outputFolder "ng/") -Recurse

    the build scripts work for me.

  • User Avatar
    0
    orbyta created

    Hi Sedulen, we run the same script and the result is the same as yours. The image on docker hub seems not to be public. How did you solve? Thanks

  • User Avatar
    0
    alexsandrocruz created

    Same here guys!

    Can you give a little help? Tks

    ❯ .\up.ps1 Pulling zero_host (zero/host:)... ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

    Continue with the new image? [yN]Y Pulling zero_host (zero/host:)... ERROR: pull access denied for zero/host, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

  • User Avatar
    0
    autumn created

    I'm seeing the same issue:

    Pulling zero_host (zero/host:)...
    ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
    
    Pulling zero_host (zero/host:)...
    ERROR: pull access denied for zero/host, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
    
  • User Avatar
    0
    autumn created

    Did any of the previous posters on this topic resolve the problem?

  • User Avatar
    0
    alexsandrocruz created

    Please guys!

    Can you help us here?

  • User Avatar
    0
    sedulen created

    Hi everyone,

    Sorry for my delayed response. Just to get us in-sync, what ANZ versions is everyone using?

    I am on ANZ v6.9.1 (Angular, Single Solution), and I have modified the "build" file and the Dockerfiles to meet my needs.

    I am using Azure DevOps Pipelines to build my code, and in my pipelines, I have tasks to build the docker image and publish to a private azure container registry.

    In looking at later ANZ versions, like v9.1.0, it looks like the docker files and build files have changed. I haven't yet explored the upgrade path yet.

    If it would be helpful, I can post the files that I have generated here so that you can see what I'm doing.

    -Brian

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sedulen

    I think it might help others who are not on the latest version of AspNet Zero. We have updated docker image generation scripts with the latest 10.2 version. For the ones who are using latest version, you can check it on your downloaded project.