下記コードをMacにインストールされているDockerでdocker-compose upを実行すると無事実行されます。
dockerfile
1FROM python:3.6 2 3RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 4RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' 5RUN apt-get -y update 6RUN apt-get install -y google-chrome-stable 7 8RUN apt-get install -yqq unzip 9RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip 10RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ 11 12ENV DISPLAY=:99 13ENV PYTHONIOENCODING 'utf-8' 14RUN pip install --upgrade pip 15RUN pip install selenium
しかし、RaspbianにインストールされているDockerでdocker-compose upすると、下記のエラーが発生してしまいます。
terminal
1 Step 5/12 : RUN apt-get install -y google-chrome-stable 2 ---> Running in 2b9181aa07dc 3Reading package lists... 4Building dependency tree... 5Reading state information... 6E: Unable to locate package google-chrome-stable
dockerならてっきりどの環境でも同じように動作すると思っていたのですが、何か依存している部分があるのでしょうか?
どなたかわかる方ご教授ください。
あなたの回答
tips
プレビュー