Skip to content

How get mount point in docker ? #9

@ZababurinSergei

Description

@ZababurinSergei

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions