I use CircleCI 1.0, and ubuntu-14.04. I want to build a Docker image using a Dockerfile that contains:
FROM amazonlinux:latest
RUN yum -y install openssh-clients
The reason is that I need the ssh-keyscan binary. However, the installation fails with:
Failed:
iputils.x86_64 0:20121221-7.13.amzn1
I’ve heard that this might happen on older Linux versions, perhaps not supporting aufs fully, and perhaps using Docker engine versions that are not stable.
Hi Ulsaa, did you find a resolution for this issue? I face the same issue.
if I build the dockerfile locally, all is well. If I build via circleci then the package fails to install.
No, I don’t have a solution. However, if instead moving to CircleCI 2.0, it should be possible to build a custom Docker image instead of using the Ubuntu build server, thus avoiding the problem.
Very frustrating - would like to avoid setting up an enterprise docker hub account and fussing with custom docker images. Does anybody know why specifically it’s failing and if there is a workaround?
@cellis: I wonder if the examples failed above because the authors did not do a repo update first. I don’t use Yum, but with Apt I always do a apt update prior to trying to install things.