I am trying to install Firefox and geckodriver in an Ubuntu docker container:
docker run ubuntu -it sh
then
apt-get -y update
apt-get -y install snapd
apt-get install firefox
the command which firefox
returns /usr/bin/firefox
but firefox --version
returns
Command '/usr/bin/firefox' requires the firefox snap to be installed.
Please install it with:
snap install firefox
then I run snap install firefox
it returns:
error: cannot communicate with server: Post "http://localhost/v2/snaps/firefox": dial unix /run/snapd.socket: connect: no such file or directory
What does it mean and what should I do?
Also for the next step, I want to install geckodriver. How should I do that?
The ultimate goal is to be able to run
firefox --version
geckodriver --version