Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image caching #8

Open
joestubbs opened this issue Oct 5, 2015 · 2 comments
Open

image caching #8

joestubbs opened this issue Oct 5, 2015 · 2 comments

Comments

@joestubbs
Copy link

Currently, when the first worker on a given docker host is created for an actor, the actor's image is pulled from the docker hub. If the image has been updated on the hub since the actor was registered, the newer image will be pulled. This might not be desirable.

Instead, we should cache actor images in the abaco system (perhaps, a private docker registry).

@NotChristianGarcia
Copy link
Member

I might know a solution here. Rather than creating a private docker registry. It should be possible to, when reading from the actor creation message, to translate images:tags to image@digests. image@digests remain constant so you'll pull the same image even when it's updated.

Tried for a bit to directly get image@digests from dockerhub using image:tag and failed. However worst case, you can pull the image once, and run the following to get the image@digests.

docker inspect --format='{{index .RepoDigests 0}}' $IMAGE

Possible solution, just wanted to comment.

@jlooney
Copy link

jlooney commented Jan 30, 2019

@NotChristianGarcia I think this is an interesting solution worth trying!

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

No branches or pull requests

4 participants