Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

326
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda