Sign inSign up

silikhon/docker-firefox

By silikhon

•Updated about 3 years ago

Run firefox from a docker image with local X-forwarding

Image
0

10K+

silikhon/docker-firefox repository overview

⁠Github repository

See the github repo⁠.

⁠Running the image

XAUTH_FILE=`xauth info | grep 'Authority file' | awk '{print $3}'`
echo XAUTH: $XAUTH_FILE

if [ -z "${DOCKER_FIREFOX_PROFILE_PATH}" ]; then 
    DOCKER_FIREFOX_PROFILE_PATH="$HOME/.docker_firefox_profile"
fi

if [ ! -d $DOCKER_FIREFOX_PROFILE_PATH ]; then
  mkdir $DOCKER_FIREFOX_PROFILE_PATH
fi

docker run --rm -it \
  --name debian-firefox \
  --net=host --env DISPLAY=:0 \
  -v "$XAUTH_FILE:/root/.Xauthority:ro" \
  -v "$DOCKER_FIREFOX_PROFILE_PATH:/root/.mozilla" \
  silikhon/docker-firefox firefox

Tag summary

Content type

Image

Digest

sha256:849137569…

Size

520.6 MB

Last updated

about 3 years ago

docker pull silikhon/docker-firefox