firefox screenshot inside docker container

Take Terminal Screenshots Inside Docker Container! Scrot + imcat

Find yourself taking screenshots inside a selenium container?

You can view those files in the terminal too (like ASCII art, but in color!)

You will need a fake display server first, how to install a fake display server inside Docker.

apt install make gcc automake -y
git clone https://github.com/stolk/imcat.git
cd imcat
make
scrot image.png
./imcat image.png

Test it setting backdrops:

apt install firefox -y
firefox --ssb 'https://www.google.com' &
scrot firefox.png
./imcat firefox.png
firefox screenshot inside docker container
firefox screenshot inside docker container

Leave a Reply

Your email address will not be published. Required fields are marked *