apisix-docker icon indicating copy to clipboard operation
apisix-docker copied to clipboard

试图运行单机模式报错: failed to fetch /usr/local/apisix/conf/apisix.yaml attributes: cannot obtain information from file '/usr/local/apisix/conf/apisix.yaml': No such file or directory

Open usrtax opened this issue 3 years ago • 2 comments
trafficstars

image


❯ cat config.yaml
apisix:
  enable_admin: false
  config_center: yaml

❯ cat docker-compose.yml
version: "3"

services:
  apisix:
    image: apache/apisix:latest
    restart: always
    volumes:
      - /var/log/apisix:/usr/local/apisix/logs
      - ./config.yaml:/usr/local/apisix/conf/config.yaml:ro
      - /mnt/www:/mnt/www:ro
    network_mode: host
❯ docker images
REPOSITORY      TAG       IMAGE ID       CREATED       SIZE
apache/apisix   latest    80ffdeac32a1   4 weeks ago   376MB
❯ docker-compose up
Starting apisix_apisix_1 ... done
Attaching to apisix_apisix_1
apisix_1  | /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init
apisix_1  | /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
apisix_1  | nginx: [error] [lua] config_yaml.lua:72: read_apisix_yaml(): failed to fetch /usr/local/apisix/conf/apisix.yaml attributes: cannot obtain information from file '/usr/local/apisix/conf/apisix.yaml': No such file or directory

usrtax avatar Aug 26 '22 04:08 usrtax

This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Sep 25 '22 10:09 github-actions[bot]

@usrtax Do you still have this issue?

tokers avatar Sep 25 '22 11:09 tokers

This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Oct 27 '22 10:10 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Nov 10 '22 10:11 github-actions[bot]