Closed bigdoods closed 7 years ago
Thanks for the report. Could you clarify which version of puffin you are running (hash)? Also could you provide docker-compose.yml (or part of it) for your app?
I think the problem might be that you specified "build: ." instead of "image:" property in your app compose file. Puffin needs and image, you'll need to push your app image to dockerhub (or some other repository, haven't tested). For my part I will try to improve the error message.
In fact this code seems to be already improved on master branch:
try:
image = client.images.get(image_name)
except docker.errors.ImageNotFound:
return None
To me it seems that either image
property is empty in your app docker-compose.yml
or your image doesn't exist on the server. In the latter case you either need to build it (in app home dir on the server):
docker build -t [org]/[name] .
or pull it if it's on dockerhub
or other registry (better solution in general):
docker pull [org]/[name]
(where [org]
is your organization name and [name]
is the project name, for example puffinrocks/puffin
)
Looking again at the error: docker.errors.NullResource: Resource ID was not provided
to me it seems that the former hypothesis is true. I will improve the error handling.
version: 8a9b625666bf5cc8954a5797eacf5c4dde1d847c
The fix for this was to push the built version of this to dockerhub and replace build property in the docker-compose file with image property and it worked.
Thanks!
Improved error message. Closing the issue.
I just ran into this error again.
Might be useful for someone but the cause was naming the 'main' service in the docker-compose file something other than 'main'.
Yeah, it needs to be main at the moment, thanks for sharing.
Hi Jarek,
I am trying to run my own app. I am getting the following error in the broswer when I select the app from the catalogue:
When I get the logs of the puffin container the error is:
After I upload my app, I build the docker-compose image in the puffin apps/ directory. I also rebuilding puffin before I click the app.
Any ideas what could be the reason for this error?
Thanks