Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While Installing the ansible from docker, I get this error. I've pasted the code of Docker file but get this error. #8

Open
Yashkaushik100 opened this issue Jan 16, 2022 · 1 comment

Comments

@Yashkaushik100
Copy link

[jenkis@localhost jenkins-data]$ docker-compose build
db_host uses an image, skipping
Building jenkins
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM jenkins/jenkins
---> 55860ee0cd73
Step 2/4 : USER root
---> Using cache
---> 671d96641eea
Step 3/4 : RUN apt-get update && apt-get install python3-pip -y && pip3 inst all ansible --upgrade
---> Running in dfed4a887524
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44 .1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
Reading package lists...
E: Release file for http://security.debian.org/debian-security/dists/bullseye-se curity/InRelease is not valid yet (invalid for another 1d 19h 11min 11s). Update s for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InReleas e is not valid yet (invalid for another 1d 15h 10min 8s). Updates for this repos itory will not be applied.
The command '/bin/sh -c apt-get update && apt-get install python3-pip -y && pip3 install ansible --upgrade' returned a non-zero code: 100
ERROR: Service 'jenkins' failed to build : Build failed
[jenkis@localhost jenkins-data]$

@NaincyKumariKnoldus
Copy link

Hey @Yashkaushik100 I have fixed this issue. I have raised a PR for this. Please review this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants