Skip to content

Unable to create a workspace from a private image from dockerhub #11982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Keith-Hon opened this issue Aug 9, 2022 · 7 comments
Closed

Unable to create a workspace from a private image from dockerhub #11982

Keith-Hon opened this issue Aug 9, 2022 · 7 comments
Labels
meta: stale This issue/PR is stale and will be closed soon team: workspace Issue belongs to the Workspace team type: bug Something isn't working

Comments

@Keith-Hon
Copy link

Keith-Hon commented Aug 9, 2022

Bug description

Reference: #8550 (comment)

Using a private image from dockerhub will cause the below error

Capture

Steps to reproduce

  1. Build a docker image from one of the gitpod workspace images, e.g. gitpod/workspace-full:2022-06-20-19-54-55
  2. Publish that image with scope to dockerhub, so that the image is private
  3. Create a new git repository and edit .gitpod.yml with reference of the private image
  4. Start a new workspace on such repository
  5. Error occurs

Workspace affected

No response

Expected behavior

It should successfully start a new workspave with a private docker image from dockerhub

Example repository

No response

Anything else?

Related Discord discussion: https://discord.com/channels/816244985187008514/1006133715409313882

@Keith-Hon Keith-Hon added the type: bug Something isn't working label Aug 9, 2022
@utam0k utam0k added the team: workspace Issue belongs to the Workspace team label Aug 9, 2022
@utam0k utam0k moved this to Breakdown in 🌌 Workspace Team Aug 9, 2022
@kylos101 kylos101 removed the status in 🌌 Workspace Team Aug 9, 2022
@kapke
Copy link

kapke commented Aug 24, 2022

Hi! I'm playing with gitpod and I have run into exactly the same issue. I have a private repo and a private dockerhub image. Gitpod cannot build/load the image because of exactly the same error as in the original post.
Sadly, neither the repo or image can be made public.

@axonasif
Copy link
Member

Is your repo private as well @kapke?
Screenshot 2022-08-25 at 10 07 56 PM

@kapke
Copy link

kapke commented Aug 29, 2022

@axonasif Yes, it is. Will Dockerfile like

FROM my-private-image

work in such case?

@axonasif
Copy link
Member

axonasif commented Aug 29, 2022

No @kapke, I mean to put your dockerfile contents into that file, souring it externally with FROM would not help for now.

@kapke
Copy link

kapke commented Aug 30, 2022

I see. Sadly this is way beyond what's easy for the environment I need.
On the other hand, Nix with flakes does the job just fine in my case, I looked at Docker mostly to have the workspace load instantly instead of having to wait couple of minutes for Nix to fetch everything.

@stale
Copy link

stale bot commented Dec 3, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Dec 3, 2022
@stale stale bot closed this as completed Dec 20, 2022
@stale stale bot moved this to Awaiting Deployment in 🌌 Workspace Team Dec 20, 2022
@kylos101
Copy link
Contributor

@Keith-Hon @kapke if you'd like to try this again, please try these docs, and if you continue to have trouble let us know? Happy to reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon team: workspace Issue belongs to the Workspace team type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants