R
RunPod11mo ago
Maxim

How do I start a pod with a private docker image (template) using GraphQL?

I am trying to start pods with the graphql api, running my private image. In the docs it says this: "If your container image is private, you can also specify Docker login credentials with a containerRegistryAuthId argument, which takes the ID (not the name) of the container registry credentials you saved in your RunPod user settings as a string." But I can simply not find this ID anywhere in my settings. How do I do it?
3 Replies
ashleyk
ashleyk11mo ago
Either use imageName or templateId. https://graphql-spec.runpod.io/#mutation-podFindAndDeployOnDemand You will most likely need templateId if your image is private. You can use the saveRegistryAuth mutation to save your credetials. https://graphql-spec.runpod.io/#mutation-saveRegistryAuth And then add them to your template.
Maxim
MaximOP11mo ago
templateId worked, thank you very much!
ashleyk
ashleyk11mo ago
Please mark as answered.
Want results from more Discord servers?
Add your server