This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Access internal network inside docker web browser

Part Number: AM625


Greetings,

I have question about new Processor SDK version 09_00_00_03.

The Mozilla Firefox web browser integrated in the new SDK works great. However, there are some challenges related to access disk and network data within device. First of all, how to access local network, which is located outside docker container, and the second - how to access data laid outside temporary docker container?

Regards,

Alexey

  • Hello Alexey,

    To access local storage please specify a volume to use at launch with the `-v` flag. This can be any host directory, but you should probably mount it to some known destination in the container such as /work or /external. A modified launch command (assuming they are still using some of my old code) example is shown here:

    docker run --rm --privileged --network host \
    		-v /tmp/.X11-unix \
    		-e XAUTHORITY \
    		-e XDG_RUNTIME_DIR=/tmp \
    		-e DISPLAY \
    		-e WAYLAND_DISPLAY \
    		-e https_proxy \
    		-e http_proxy \
    		-e no_proxy \
    		-v "$XDG_RUNTIME_DIR":/tmp \
    		--user=$(id -u):$(id -g) \
    		ghcr.io/texasinstruments/seva-browser:latest
    

    This uses the host network so you should have access to all lan resources as well. To add a volume, just add

      -v "<my-directory>":/work \

    somewhere prior to the container string at the end of the above example.

    Regards,

    Randolph Sapp