Error connecting Error while fetching server API version Connection aborted error 13 Permission denied - Ansible Jenkins

0 votes

I want to copy docker container inside docker registry with Jenkins.

When I execute Ansible playbook I get :

"msg": "Error connecting: Error while fetching server API version: ('Connection aborted.', error(13, 'Permission denied'))"

My playbook:

---
- hosts: localhost
  vars:
    git_branch: "{{ GIT_BRANCH|default('development') }}"
  tasks:
  - name: Log into Docker registry
    docker_login:
      registry_url: https://registry.docker.....si
      username: ...
      password: ....
Apr 4, 2019 in Ansible by Asha
7,750 views

1 answer to this question.

0 votes

Hey, @Asha seems like your registry does not have a valid HTTP registry. Try adding that in the following way:

{
    "insecure-registries" : [ "https://registry.docker.....si" ]
}
answered Apr 4, 2019 by Anusha

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Error saying permission denied while running ansible playbook

Hey @Neha, add the following line to ...READ MORE

answered Feb 8, 2019 in Ansible by Amy
15,059 views
0 votes
1 answer

Permission denied when running ansible playbook through jenkins

Jenkins uses it's own user to execute ...READ MORE

answered Jun 25, 2018 in Ansible by DareDev
• 6,890 points
3,612 views
0 votes
1 answer

Remote host throwing error saying "Permission Denied" - Ansible

Hey @Patrick, Change the path of Ansible's remote_tmp ...READ MORE

answered Jan 16, 2019 in Ansible by Cerci
4,514 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,090 points
2,435 views
+1 vote
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP