Skip to content
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

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

Open
johngrimsey opened this issue Oct 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@johngrimsey
Copy link

johngrimsey commented Oct 5, 2024

To Reproduce

  • Add ghcr.io registry login to cluster settings, selecting external server
  • Create new Application service on external server
  • Choose Docker provider
  • Use private registry credentials (Docker image, username, password)
  • Click deploy

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.

@johngrimsey johngrimsey added the bug Something isn't working label Oct 5, 2024
@Siumauricio
Copy link
Contributor

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

image

@johngrimsey
Copy link
Author

johngrimsey commented Oct 5, 2024

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
Copy link
Contributor

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

#478 (comment)

@johngrimsey
Copy link
Author

johngrimsey commented Oct 5, 2024

Yes I did exactly that first. Current state is:

  • External server (VPS1) and Dokploy server (VPS2)
  • External registry added, specified VPS1
  • Create application, Docker provider
  • Specify private image - add username/password on the Provider options
  • Works to deploy to Dokploy server, fails to pull when on external

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants