Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

pull access denied for lightbend/akka-sample-cluster-docker-compose-scala #26

Open
elitzer2 opened this issue Jun 5, 2019 · 10 comments

Comments

@elitzer2
Copy link
Contributor

elitzer2 commented Jun 5, 2019

Versions used

Using latest code on GitHub as of today 6/4/19 and running docker-compose up

Expected Behavior

The docker containers start up and run as described in README.

Actual Behavior

Error response from daemon: pull access denied for lightbend/akka-sample-cluster-docker-compose-scala, repository does not exist or may require 'docker login'

It seems like the image in the Dockerfile doesn't exist in the Docker Hub?

@elitzer2
Copy link
Contributor Author

elitzer2 commented Jun 5, 2019

Ok I was able to run sbt docker:publishLocal and changed the docker-compose.yml to use the image with name of "lightbend/akka-docker" and it worked.

@raboof
Copy link
Member

raboof commented Jun 5, 2019

It seems like the image in the Dockerfile doesn't exist in the Docker Hub

That's correct, it's expected to be built from source

changed the docker-compose.yml to use the image with name of "lightbend/akka-docker"

Oh, that should be consistent. Would you be interested in preparing a PR to make sure docker:publishLocal publishes with the name lightbend/akka-sample-cluster-docker-compose-scala?

@raboof
Copy link
Member

raboof commented Jun 5, 2019

(I suspect sbt takes the project name from the directory name and you put the project in a folder named akka-docker - so it might just be a matter of explicitly adding name := "akka-sample-cluster-docker-compose-scala" to the build.sbt)

@elitzer2
Copy link
Contributor Author

elitzer2 commented Jun 5, 2019 via email

@elitzer2
Copy link
Contributor Author

elitzer2 commented Jun 6, 2019

Yup, that fixed it!

@elitzer2
Copy link
Contributor Author

elitzer2 commented Jun 6, 2019

@raboof I also noticed some unused import warnings in ClusteringApp.scala. Want me to fix those?

@raboof
Copy link
Member

raboof commented Jun 6, 2019

@elitzer2 yes, I'd much appreciate it! (meanwhile closing this issue as #27 fixes it)

@raboof raboof closed this as completed Jun 6, 2019
@alvico
Copy link

alvico commented Sep 12, 2019

I've encountered the same issue, and I don't really know why, it just happened after I removed the images from my local docker repository.

@raboof
Copy link
Member

raboof commented Sep 13, 2019

@alvico we don't publish docker images for this example, you're supposed to sbt docker:publishLocal it yourself to your local docker repository.

Perhaps we should not use the lightbend/ organization to make the error message more clear?

@raboof raboof reopened this Sep 13, 2019
@alvico
Copy link

alvico commented Sep 18, 2019

thanks raboof, fixed the problem, had several imports messed up due intellij optimise imports... together with the cleaning of the local docker images causes quite a mess in my local project, managed to fix everything and now works faultless. You could close the issue, although I would agree on the suggestion of not using the lightbend organisation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants