how to find location local json docker
# ask-ai
g
how to find location local json docker
u
To find the location of local JSON files when using Airbyte with Docker, you have a few options: 1. Default location: By default, Airbyte writes local JSON files to
/tmp/airbyte_local
on the host machine. This is mounted to
/local
inside the Docker container [Local JSON](https://docs.airbyte.com/integrations/destinations/local-json#local-json). 2. Accessing files on the host: If you're running Airbyte on the same computer, you can open your browser and enter
file:///tmp/airbyte_local
to view the replicated data locally [Access Replicated Data Files](https://docs.airbyte.com/integrations/destinations/local-json#access-replicated-data-files). 3. Using Docker commands: If you can't access the files directly, you can use Docker commands to view or copy the files: a. Access the scheduler container:
Copy code
docker exec -it airbyte-server bash
b. Navigate to the default local mount:
Copy code
cd /tmp/airbyte_local
c. List files:
Copy code
ls
d. View file contents:
Copy code
cat {filename}
e. Copy files to your host machine:
Copy code
docker cp airbyte-server:/tmp/airbyte_local/{destination_path}/{filename}.jsonl .
[Access Replicated Data Files](https://docs.airbyte.com/integrations/destinations/local-json#access-replicated-data-files) 4. For Windows users with Docker backed by WSL2: You may need to access the files through the WSL2 file system. The path would be similar to:
\\wsl$\docker-desktop\tmp\docker-desktop-root\containers\services\docker\rootfs\tmp\airbyte_local
[Windows - Browsing Local File Output](https://docs.airbyte.com/integrations/locating-files-local-destination) Remember to ensure that Docker has the necessary permissions to access the
/tmp
directory (and
/private
on macOS) [Local JSON](https://docs.airbyte.com/integrations/destinations/local-json#local-json).