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

322
Visualizações
Docker 's Error: libselinux conflicts with fakesystemd

I'm building docker image with a Dockerfile:

FROM       centos:centos7.1.1503
MAINTAINER foo <foo@bar.com>

ENV TZ "Asia/Shanghai"
ENV TERM xterm

RUN \
    yum update -y && \
    yum install -y epel-release &&\
    yum update -y && \
    yum install -y curl wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname net-tools rsync man && \
    yum install -y gcc gcc-c++ git make automake cmake patch logrotate python-devel libpng-devel libjpeg-devel && \
    yum install -y pwgen python-pip && \
    yum clean all

and it show the error as below:

Error: libselinux conflicts with fakesystemd-1-17.el7.centos.noarch

If I change FROM centos:centos7.1.1503 to FROM centos:centos7,all will work fine. So ,what should I do to using centos7.1.1503

My Linux Distribution is Ubuntu 16.04.1 LTS and my docker version is 1.12.6.

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

0

Try running this inside the container you create, before any installation is made:

yum swap -y fakesystemd systemd && yum clean all
yum update -y  && yum clean all

Or inside a Dockerfile at the begining before the first RUN you have tipped:

RUN yum swap -y fakesystemd systemd && yum clean all \
    && yum update -y  && yum clean all

Hope was useful!

about 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