Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How get mount point in docker ? #9

Open
ZababurinSergei opened this issue Jan 28, 2023 · 0 comments
Open

How get mount point in docker ? #9

ZababurinSergei opened this issue Jan 28, 2023 · 0 comments

Comments

@ZababurinSergei
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant