mafintosh / mafintosh/docker-browser-server

expose-fs not getting forwarded

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
80
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I want to create a tutorial based on docker-browser-server and [command_line_bootcamp](https://github.com/blahah/command_line_bootcamp). My problem is that my filesystem seemingly does not get shown. Seems as if expose-fs is unable to connect.

I'm running docker-browser-server as a docker-container:
* From https://github.com/monsdar/bootcamp_docker-browser-server
* CMD: `CMD docker-browser-server monsdar/bootcamp-baseimage -p 8080`
* Run the container: `docker run -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock monsdar/bootcamp-docker-browser-server`

My baseimage is from [here](https://github.com/monsdar/bootcamp_baseimage)
* It uses expose-fs
* It exposes port 8441

When connecting to docker-browser-server a new container gets created successfully (`Spawning new container (buj5ijhk4e)`), but this container does not map its internal port 8441 to the external port 8441. I guess this is why the frontend does not show any files. Docker maps 8441 to some random port though, which I can `curl localhost:12345` on and get the files and paths.

My testing frontend is here: https://monsdar.gitlab.io/bootcamp_test/?id=buj5ijhk4e, based on this repo: https://gitlab.com/monsdar/bootcamp_test

Any idea why this is happening? Is this a port-mapping issue, or am I looking in the wrong direction?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the reported docker-browser-server command, the mounted Docker socket, and the bootcamp base image. Inspect how the spawned container's exposed port 8441 is forwarded and how expose-fs connects; compare the random mapped port with the frontend's expected endpoint. Done means the frontend can display the container's files through the documented setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript
Domain
backend, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.