Can't able to pull from private repo
I am trying to pull the image from a private repo in AWS.
I am providing the correct auth token in the docker pull API
docker.pull('image:tag', { authConfig : auth }, function (err,stream) { }):
But it throws an error like unable to access repo,
Docker login required.
But i am able to pull the public images using this API (like Ubuntu).
It will be useful if somebody try to pull an image from the private repo using a token
Im using it like this, and it works just fine.
const options = {
authconfig: {
username: USERNAME,
password: PASSWORD,
}
}
Dockerode.pull("my.registry/nginx:latest", options, (error, stream) => ...)
Be careful using the authconfig with public images, it wont work.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Open a new issue if needed.