Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Docker Push to Proget Container Registry fails

    Scheduled Pinned Locked Moved Support
    4 Posts 3 Posters 175 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      chris.jones_7613
      last edited by

      Docker Push to Proget Container Registry fails

      Whenever I push an image it never completes all the layers!

      pushing an image fails on 1 or more of the layers.
      It will push most of the layers (usually the smaller ones) and it will get to the end of the bigger layers and then retry pushing again & again,
      after a few attempts it fails.

      Sometimes it shows a simple EOF error
      Other times it’s an invalid digest error.

      Example:

      PS C:\ > docker login {My-Proget-URI}.uk
      Username: dockerrepo
      Password:
      Login Succeeded
      PS C:\ > docker push {My-Proget-URI}.uk/dockerrepo/teamcity-server:2019.1.2-linux
      The push refers to repository [{My-Proget-URI}.uk/dockerrepo/teamcity-server]
      469e05c1702a: Pushed
      730dce3e0461: Pushing [==================================================>] 1.237GB/1.237GB
      3efae2e4162b: Pushed
      ef2df751a4b5: Pushed
      4afa81dcce76: Pushed
      b8c3ef7eadb7: Pushed
      9ac650d610a0: Pushed
      b701c7a6f8ac: Pushed
      ca2bb65f907f: Pushed
      b9b7103af585: Pushed
      ca2991e4676c: Pushed
      a768c3f3878e: Pushed
      bc7f4b25d0ae: Pushed
      EOF

      and again…

      C:> docker push {My-Proget-URI}.uk/dockerrepo/teamcity-server:2019.1.2-linux
      The push refers to repository [{My-Proget-URI}.uk/dockerrepo/teamcity-server]
      469e05c1702a: Layer already exists
      730dce3e0461: Retrying in 1 second
      3efae2e4162b: Layer already exists
      ef2df751a4b5: Layer already exists
      4afa81dcce76: Layer already exists
      b8c3ef7eadb7: Layer already exists
      9ac650d610a0: Layer already exists
      b701c7a6f8ac: Layer already exists
      ca2bb65f907f: Layer already exists
      b9b7103af585: Layer already exists
      ca2991e4676c: Layer already exists
      a768c3f3878e: Layer already exists

      and again…

      PS C:> docker push {My-Proget-URI}.uk/dockerrepo/teamcity-server:2019.1.2-linux
      The push refers to repository [{My-Proget-URI}.uk/dockerrepo/teamcity-server]
      469e05c1702a: Layer already exists
      730dce3e0461: Pushing [==================================================>] 1.237GB/1.237GB
      3efae2e4162b: Layer already exists
      ef2df751a4b5: Layer already exists
      4afa81dcce76: Layer already exists
      b8c3ef7eadb7: Layer already exists
      9ac650d610a0: Layer already exists
      b701c7a6f8ac: Layer already exists
      ca2bb65f907f: Layer already exists
      b9b7103af585: Layer already exists
      ca2991e4676c: Layer already exists
      a768c3f3878e: Layer already exists
      bc7f4b25d0ae: Layer already exists
      received unexpected HTTP status: 500 Internal Server Error

      I basically re-tagged a good image that I’ve already pushed to Docker Hub.
      So I’m trying the same docker push from the same machines, I’ve set the tag for our new private Proget container registry and docker logged in Ok.

      Proget Setup:

      I’ve created a container in our Azure Kubernetes Service Cluster from the docker hub image: inedo/proget:5.2.7
      We’re using SQL Server.

      I have set the Web.BaseUrl, created an account and assigned a Task to the container registry feed for the User with Publish Packages permission

      Everything else seems to be working so far.
      I’ve logged in amended Admin password, created users, setup a package feed, pushed packages, downloaded packages. I added the extension & setup the OSS vulnerability scanner.

      After the failed push, looking on the container at the storage for packages I do see some blobs here:
      ls -l /var/proget/packages/.docker/F1/blobs/sha256/

      But, interestingly looking in the uploads folder there are a number of zero byte files!

      ls -l /var/proget/packages/.docker/F1/uploads/

      So, any ideas what’s preventing the image upload to container registry feed ?

      Could it be Linux Mono file permissions

      Thanks

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hi Chris,

        This is a common issue that is related to Linux/Mono. ProGet Enterprise doesn't support Linux, is there anyway to use a Windows instance for your solution?

        Thanks,
        Jason

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          chris.jones_7613 @jjones
          last edited by

          Hi @jjones
          We're using the provided Inedo Proget image (that is based on Mono).

          We want the convenience of pulling a docker image for ProGet.

          We have access to a Windows node pool, so yes we could run a Windows version, will there be a Windows based image?
          or at least a Dockerfile with the steps for manual install of ProGet?

          Thanks

          1 Reply Last reply Reply Quote 0
          • apxltdA Offline
            apxltd inedo-engineer
            last edited by

            This is on our future roadmap; for now you'll need to install and manage as a normal windows application.

            Founder and CEO, Inedo

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation