ubuntu打开chrome,docker安装ubuntu
要使用selenium,必须首先安装chrome和chrome驱动程序。 以下是安装在Docker上的步骤
apt-get-yinstallxvfbgtk2- engines-pixbuf
apt-get-yinstallxfonts-cyrillicxfonts-100 dpixfonts-75 dpixfonts-basexfonts-scalable
apt-get-yinstallimagemagickx 11-apps
xvf B- AC :99-screen 01280 x 1024 x 16导出显示器=:99
wget-q-o-http://dl.Google.com/Linux/Linux _ signing _ key.pub|apt-keyadd -
sh-c ' echo ' deb http://dl.Google.com/Linux/chrome/deb/stable main '/etc/apt/sources.list.d/gooogle.Lin
自动获取更新- y
apt-get-yinstallgoogle-chrome-stable
wget 3358 chrome driver.storage.googleapis.com/2.38/chrome driver _ Linux 64.zip
apt-get-y安装zip
apt-get-y安装unzip
unzip chromedriver_linux64.zip
CP chrome驱动程序/usr/bin /