Docker загружает последнюю версию Chrome, даже если указано ⇐ Linux
-
Anonymous
Docker загружает последнюю версию Chrome, даже если указано
I want to download chrome from a docker file with a specific version. Here is my docker file content,
`Google Chrome RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ apt-get update -qqy \ apt-get -qqy install google-chrome-stable = 'XXXXXXXX' \ rm /etc/apt/sources.list.d/google-chrome.list \ rm -rf /var/lib/apt/lists/* /var/cache/apt/* \ sed -i 's/"$HERE\/chrome"/"$HERE\/chrome" --no-sandbox --disable-dev-shm-usage/g' /opt/google/chrome/google-chrome` No matter what is put inplace of XXXXXXX only the latest chrome will get downloaded, this is causing me issues as the chrome driver i use needs to be in compliance with the chrome version (Changing the driver version is not possible as there is no file online for the latest chrome driver)
Can somebody tell me where I am going wrong? How can i force this docker file to download the version of chrome that i want?
Источник: https://stackoverflow.com/questions/780 ... -specified
I want to download chrome from a docker file with a specific version. Here is my docker file content,
`Google Chrome RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ apt-get update -qqy \ apt-get -qqy install google-chrome-stable = 'XXXXXXXX' \ rm /etc/apt/sources.list.d/google-chrome.list \ rm -rf /var/lib/apt/lists/* /var/cache/apt/* \ sed -i 's/"$HERE\/chrome"/"$HERE\/chrome" --no-sandbox --disable-dev-shm-usage/g' /opt/google/chrome/google-chrome` No matter what is put inplace of XXXXXXX only the latest chrome will get downloaded, this is causing me issues as the chrome driver i use needs to be in compliance with the chrome version (Changing the driver version is not possible as there is no file online for the latest chrome driver)
Can somebody tell me where I am going wrong? How can i force this docker file to download the version of chrome that i want?
Источник: https://stackoverflow.com/questions/780 ... -specified
Мобильная версия