R
RunPod13mo 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
ashleyk13mo 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
MaximOP13mo ago
templateId worked, thank you very much!
ashleyk
ashleyk13mo ago
Please mark as answered.

Did you find this page helpful?