Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilbertoca/2992e3492711265be2b7c3eebc6a6437 to your computer and use it in GitHub Desktop.
Save gilbertoca/2992e3492711265be2b7c3eebc6a6437 to your computer and use it in GitHub Desktop.
Imagem Docker para rodar um firefox com o warsaw
Créditos: https://gist.github.com/lichti/6654ee35db133949101bdf61c4e2412c
More Info:
https://hub.docker.com/r/lichti/warsaw-browser/
https://github.com/lichti/containers4docker/tree/master/warsaw-browser
Acrescente essa função no arquivo .bashrc
function warsaw-browser {
xhost +
docker run -it --rm \
-e DISPLAY=unix$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $(readlink -f .):/opt/assets \
--shm-size 2g \
--name warsaw-browser \
-w /opt/assets \
lichti/warsaw-browser bb
}
alias bb="warsaw-browser bb"
depois, source .bashrc
aí é só digita bb. é isso.
@gilbertoca
Copy link
Author

Ao mudar de monitor ocorre esse erro lichti/containers4docker#17

Ficou assim agora:

alias bb="warsaw-browser bb"

function warsaw-browser {
   xhost +local:docker 
   docker run --device=/dev/dri:/dev/dri --ipc=host -it --rm \
              -v /tmp/.X11-unix:/tmp/.X11-unix \
              -v $HOME/Downloads:/home/bank/Downloads \
              -e DISPLAY=unix$DISPLAY \
              --shm-size 2g              \
              --name warsaw-browser \
              lichti/warsaw-browser $1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment