Search code examples
dockerdocker-composeyamlenvoyproxy

How to open a file inside Envoy. Docker-Compose


I use docker-compose to run envoy, I need to look at the statistics that will be generated by outlier_detection for this in cluster_manager I specified the path in

event_log_path: /var/log/event.log

However, I can't figure out how can I open this file to view it? Using volume in docker compose doesn't help


Solution

  • Some options:

    1. Displaying the info

    docker exec -ti my_container sh -c "cat /var/log/event.log"

    1. Copying the file to the host

    docker ps

    docker cp Your_container_ID:/var/log/event.log /my_host_folder

    And editing the file in your host.