Created
March 4, 2020 20:48
-
-
Save gilbertoca/2992e3492711265be2b7c3eebc6a6437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ao mudar de monitor ocorre esse erro lichti/containers4docker#17
Ficou assim agora: