# docker installation with ansible

**URL:** <https://forum.ansible.com/t/docker-installation-with-ansible/35023>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [April 21, 2021, 11:49am UTC](https://forum.ansible.com/t/docker-installation-with-ansible/35023 "2021-04-21T11:49:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bec12317](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@bec12317](https://forum.ansible.com/u/bec12317)\
**Post date:** [April 21, 2021, 11:49am UTC](https://forum.ansible.com/t/docker-installation-with-ansible/35023/1 "2021-04-21T11:49:02Z")

</div>

I am trying to install docker on one of my VMs on esxi, but i get this error  
my playbook is below the error

PLAY [installing docker on ubuntu] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [vmware\_guest] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> (item=my\_vm\_01)

TASK [adding docker gpg key] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “Failed to download key at [https://download.docker.com/linux/ubuntu/gpg:](https://download.docker.com/linux/ubuntu/gpg:) An unknown error occurred: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/root/.netrc, line 3)”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 21, 2021, 1:33pm UTC](https://forum.ansible.com/t/docker-installation-with-ansible/35023/2 "2021-04-21T13:33:14Z")

</div>

I don’t think the error can be any clearer:

---

<div class="post-metadata">

**Author:** ![Komal\_Suthar](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@Komal\_Suthar](https://forum.ansible.com/u/Komal_Suthar)\
**Post date:** [April 21, 2021, 2:20pm UTC](https://forum.ansible.com/t/docker-installation-with-ansible/35023/3 "2021-04-21T14:20:53Z")

</div>

[https://www.linkedin.com/posts/komalsuthar\_rightmentor-linuxworld-arth2020-activity-6755807204814671872-eThV](https://www.linkedin.com/posts/komalsuthar_rightmentor-linuxworld-arth2020-activity-6755807204814671872-eThV)

Refer this it will help for installation of docker
