Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

598
Visualizações
error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory in linux docker container

I am trying to run my chromedriver selenium tests within my docker image (java).

ChromeDriver - linux 64

Here is my Dockerfile

# Dockerfile
FROM openjdk

ENV MAVEN_VERSION 3.3.9

RUN mkdir -p /usr/share/maven \
  && curl -fsSL http://apache.osuosl.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz \
    | tar -xzC /usr/share/maven --strip-components=1 \
  && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn




ENV MAVEN_HOME /usr/share/maven

VOLUME /root/.m2

CMD ["mvn"]

After building the image, when i run the docker - i get the error while loading shared libraries: libX11.so.6: cannot open shared object file - though chromedriver is present in the root folder.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

For all practical purposes a docker container is a headless server, without an X11-server. Therefore docker images usually does not have the X11 libraries needed for graphical clients to run.

Either install them or use another Docker image which has them.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda