Search code examples
dockergoogle-chromedocker-composedockerfiledocker-machine

What is chrome path inside docker ubuntu image


what is the chrome installation path inside docker container,usually its stores in opt in linux system but i dont have this directory in my image, so im unable to find the path.

this is the command i used for docker image:

RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
dpkg --unpack google-chrome-stable_current_amd64.deb && \
apt-get install -f -y

Solution

  • only this works for me, use -x command and specify the dir ,instead of --unpack,

    RUN wget https://dl.google.com/linux/direct/${CHROME_PACKAGE} && \ dpkg-deb -x ${CHROME_PACKAGE} / && \ apt-get install -f -y