o Docker funciona? • What the heck is X11? • Como o Docker X11 socket share funciona? • Talk is cheap. Show me the code! • Por quê fazer isso? • Como controlar a quantidade de memória que o chrome come da sua máquina? • Demo ROTEIRO @di3goleite
to run, we need to have a XServer which is available as part of every Linux Desktop Environment, But within a Container we don’t have any XServer — so we will. • share the Host’s XServer with the Container by creating a volume --volume="$HOME/.Xauthority:/root/.Xauthority:rw" • share the Host’s DISPLAY environment variable to the Container --env="DISPLAY" • run container with host network driver with --net=host
may as well YOLO --cpuset-cpus 0 \ # control the cpu --memory 512mb \ # max memory it can use -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket -e DISPLAY=unix$DISPLAY \ # pass the display -v $HOME/Downloads:/root/Downloads \ # optional, but nice -v $HOME/.config/google-chrome/:/data \ # if you want to save state --device /dev/snd \ # so we have sound --name chrome \ jess/chrome COMO CONTROLAR A QUANTIDADE DE MEMÓRIA QUE O CHROME COME DA SUA MÁQUINA?