kayx23 commented on issue #498:
URL: https://github.com/apache/apisix-docker/issues/498#issuecomment-1713595295
Another way is to mount the file `apisix.yaml` at container start up, with a
working config (e.g. a route) inside the file.
If you mount an empty file, you _could_ get the following:
```text
/usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
/usr/local/openresty//luajit/bin/luajit:
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:756: bad argument #1 to
'sfind' (string expected, got nil)
stack traceback:
[C]: in function 'sfind'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:756: in function
'parsedocuments'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:818: in function
'parse'
/usr/local/apisix/apisix/cli/file.lua:321: in function
'read_yaml_conf'
/usr/local/apisix/apisix/cli/ops.lua:174: in function
</usr/local/apisix/apisix/cli/ops.lua:157>
/usr/local/apisix/apisix/cli/ops.lua:976: in function 'execute'
./apisix/cli/apisix.lua:40: in main chunk
[C]: at 0x56493d0c23d0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]