wasi-fs-access icon indicating copy to clipboard operation
wasi-fs-access copied to clipboard

How get mount point in docker ?

Open ZababurinSergei opened this issue 2 years ago • 0 comments

Hi. I took a docker container from emscripten.

Launched the container. Made a server for this project.

Gave access to the directory of its file system.

How can I use find this open directory from my filesystem? I want to build an application using the docker environment.

Fetch Emscripten docker image

docker pull emscripten/emsdk:2.0.25

Create the container and mount ~/wasm to /src in the container

docker run -it -d -p 80:80 -p 7319:7319 --name wasm --volume ~/wasm:/src  emscripten/emsdk:2.0.25

Go into your container

docker exec -it wasm bash
git clone https://github.com/ZababurinSergei/wasi-fs-access
cd wasi-fs-access
npm install && npm run start

I get console there i get my file system

But how get my file system in docker ?

ZababurinSergei avatar Jan 28 '23 22:01 ZababurinSergei