Dokploy / dokploy

Open Source Alternative to Vercel, Netlify and Heroku.
https://dokploy.com/
Other
7.39k stars 368 forks source link

Create application service with Dockerfile provider from private ghcr.io account #528

Open johngrimsey opened 4 days ago

johngrimsey commented 4 days ago

To Reproduce

Current vs. Expected behavior

Current behaviour

Deploy fails to pull image from registry

CleanShot 2024-10-04 at 22 34 17@2x

 Expected behaviour

Specifying login details on the Provider panel should allow image to be pulled for deployment, whether on external server or Dokploy server.

Provide environment information

Dokploy 0.9.4

Which area(s) are affected? (Select all that apply)

Docker

Additional context

Unsure if there is a relationship between the registry details in the Cluster Settings, and the login details on the provider panel.

Siumauricio commented 4 days ago

In the latest version we add a option to login in the remote server, have you tried?

image

johngrimsey commented 4 days ago

Yep did that first! Now works great with docker-compose in 0.9.4. Not working deploying a single Dockerfile from a remote registry, putting the credentials into the provider box (even after setting creds in registry settings under settings > cluster). Works on Dokploy server but not to external server.

Siumauricio commented 4 days ago

Strange, I tested with dockerhub in remote server and is working fine, can you follow this steps to configure the ghrc registry?

https://github.com/Dokploy/dokploy/issues/478#issuecomment-2372174495

johngrimsey commented 4 days ago

Yes I did exactly that first. Current state is:

I did manually login to ghcr.io on my external VPS (/home/root/.docker/config.json exists) when we solving the compose issue (which was resolved by changes in 0.9.4)

Siumauricio commented 2 days ago

Can you show how did you configured your ghrc registry in the registry section?

Siumauricio commented 2 days ago

@johngrimsey I did this without login manually

Steps:

  1. Login via docker registry UI image
  2. Create the application and set the image like this image Before without authenticating image After image