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

Nil pointer error when running crane lift -c deploy/docker-compose.yml #356

Open
nmrshll opened this issue Oct 24, 2020 · 3 comments
Open

Comments

@nmrshll
Copy link

nmrshll commented Oct 24, 2020

Steps to reproduce

  1. File at ./deploy/docker-compose.yml:
version: "3.8"
services:
  timescale:
    image: "timescale/timescaledb:1.7.4-pg12"
  1. Run crane lift -c deploy/docker-compose.yml in ./

The error message is:

crane lift --config=./deploy/docker-compose.yml
ERROR: runtime error: invalid memory address or nil pointer dereference
@nmrshll
Copy link
Author

nmrshll commented Oct 24, 2020

Is this already known ?
I get that there is a strong chance that it's only me not using crane properly, but a solution to this error could be a nicer error message instead of a panic, telling the user what went wrong.

@michaelsauter
Copy link
Owner

Not known. This project is not actively used anymore by myself so haven't looked into it for a while. Maybe double check indentation and keys? Looks like something like this should work.

@nmrshll
Copy link
Author

nmrshll commented Oct 26, 2020

I double checked by running the same file with docker-compose -f ./deploy/docker-compose.yml up, which worked as expected.
Nothing urgent as there's the original docker-compose as a fallback, I just wanted to signal it.

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

No branches or pull requests

2 participants