Hey folks, I'm trying to pull a private docker ima...
# general
s
Hey folks, I'm trying to pull a private docker image from dockerhub using pulumi. I have logged into docker on my machine and I tried to setup a docker provider with the right creds for dockerhub to pull them image using
docker.RemoteImage
API but it always fails with the following logs.
Copy code
Unable to read Docker image into resource: unable to pull image user/myimage:v0.1.1: error pulling image user/myimage:v0.1.1: Error response from daemon: pull access denied for user/myimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Am I missing something?
Copy code
const dockerHubProvider = new docker.Provider("dockerHubProvider", {
    registryAuth: [{
        address: "<http://docker.io|docker.io>",
        username: dockerUsername,
        password: dockerPassword,
    }],
});


const dockerHubImage = new docker.RemoteImage(`dockerhub-image`,{
        name: dockerHubImageName
    }, {provider : dockerHubProvider})
This is the block of code I'm running