crane icon indicating copy to clipboard operation
crane copied to clipboard

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

Open nmrshll opened this issue 3 years ago • 3 comments

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 avatar Oct 24 '20 17:10 nmrshll

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.

nmrshll avatar Oct 24 '20 17:10 nmrshll

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.

michaelsauter avatar Oct 26 '20 07:10 michaelsauter

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.

nmrshll avatar Oct 26 '20 10:10 nmrshll