`assignment to entry in nil map` when using DRONE_RUNNER_ENV_FILE

When i have anything in env file, runner will fail to start.

logs:

agent_1  | goroutine 1 [running]:
agent_1  | github.com/drone-runners/drone-runner-docker/command/daemon.fromEnviron(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
agent_1  |      /drone/src/command/daemon/config.go:161 +0x39b
agent_1  | github.com/drone-runners/drone-runner-docker/command/daemon.(*daemonCommand).run(0xc000306b50, 0xc00030a1b0, 0x0, 0x0)
agent_1  |      /drone/src/command/daemon/daemon.go:47 +0xd3
agent_1  | gopkg.in/alecthomas/kingpin%2ev2.(*actionMixin).applyActions(0xc000104318, 0xc00030a1b0, 0x0, 0x0)
agent_1  |      /root/go/pkg/mod/gopkg.in/alecthomas/kingpin.v2@v2.2.6/actions.go:28 +0x6d
agent_1  | gopkg.in/alecthomas/kingpin%2ev2.(*Application).applyActions(0xc00030e690, 0xc00030a1b0, 0x0, 0x0)
agent_1  |      /root/go/pkg/mod/gopkg.in/alecthomas/kingpin.v2@v2.2.6/app.go:557 +0xdc
agent_1  | gopkg.in/alecthomas/kingpin%2ev2.(*Application).execute(0xc00030e690, 0xc00030a1b0, 0xc000306be0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x9d2600)
agent_1  |      /root/go/pkg/mod/gopkg.in/alecthomas/kingpin.v2@v2.2.6/app.go:390 +0x8f
agent_1  | gopkg.in/alecthomas/kingpin%2ev2.(*Application).Parse(0xc00030e690, 0xc00006c190, 0x0, 0x0, 0xc00030e690, 0xc000199f88, 0x40584f, 0xc00006a058)
agent_1  |      /root/go/pkg/mod/gopkg.in/alecthomas/kingpin.v2@v2.2.6/app.go:222 +0x203
agent_1  | github.com/drone-runners/drone-runner-docker/command.Command()
agent_1  |      /drone/src/command/command.go:31 +0xfb
agent_1  | main.main()
agent_1  |      /drone/src/main.go:13 +0x20
agent_1  | panic: assignment to entry in nil map

docker image: drone/drone-runner-docker 1 7245629d6177 2 weeks ago 20.5MB

compose file:

  agent:
    image: drone/drone-runner-docker:1
    restart: unless-stopped
    env_file:
      - drone.env
    ports:
      - 3000:3000
    environment:
      DRONE_RUNNER_ENV_FILE: /agent.env
    volumes:
      - ./agent.env:/agent.env:ro
      - /var/run/docker.sock:/var/run/docker.sock

agent.env

KEY=VALUE

If i use empty file for agent.env, it starts successfully.

And i can’t use DRONE_RUNNER_ENVIRON instead, because i want set HTTP_PROXY for every pipeline
but : in envconfig map value is not supported

Solved after update drone-docker-runner image to

drone/drone-runner-docker                1                   25d039088d35        4 weeks ago         20.6MB