Skip to content

tugboat doesn't seem to work with private repo on docker hub. #10

@h0ngcha0

Description

@h0ngcha0

Hi,

Thanks for making this nice lib.

I have a problem to pull images from a private repo on docker hub. I basically just followed the steps in README, like so:

import tugboat.AuthConfig
val auth = AuthConfig(user, password, email)
docker.auth(auth)().foreach(println)

docker.as(auth).images.pull(imageName).registry("https://index.docker.io/v1/").stream {
  case Pull.Status(msg) => println(msg)
  case Pull.Progress(msg, _, details) =>
    println(msg)
    details.foreach { dets =>
      println(dets.bar)
    }
  case Pull.Error(msg, _) =>  println(msg)
}

And it prints

Error: image .... not found

I confirmed that the same credential works with docker login. and from command line i was able to pull that particular image without problems.

Did I do anything wrong?

Cheers,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions