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 in Ansible by Asha
569 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 by Anusha

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
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,810 points
779 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 in Ansible by Cerci
320 views
0 votes
1 answer
0 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
• 56,960 points
251 views
0 votes
3 answers