How do you pull private images from private docker repositories other than docker hub?
I can see in the documentation that you use the auth object.
However, it’s unclear what you have to put in the image
attribute and the optional server_address
attribute. It seems image attribute optionally uses the entire URL, and then server_address is the domain without the protocol (https://). Given that, I would think this would work (but it doesn’t):
config {
image = "https://registry.digitalocean.com/myusername/webserver:latest"
auth {
server_address = "registry.digitalocean.com"
username = "myusername"
password = "mypassword"
}
It’s also unclear whether you put the digital ocean password in, or if it’s the key for an auth token, because I don’t really know the mechanism that nomad uses to pull the repos.
Of course, I’d want to move to using Vault, but I figured I’d get this working first. But perhaps, it’s better just to use Vault straight off the bat?