# Is there a Docker image for the latest Ansible 2.5.0

**URL:** <https://forum.ansible.com/t/is-there-a-docker-image-for-the-latest-ansible-2-5-0/26683>\
**Category:** Ansible Developer\
**Created:** [February 8, 2018, 12:41pm UTC](https://forum.ansible.com/t/is-there-a-docker-image-for-the-latest-ansible-2-5-0/26683 "2018-02-08T12:41:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DK1](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@DK1](https://forum.ansible.com/u/DK1)\
**Post date:** [February 8, 2018, 12:41pm UTC](https://forum.ansible.com/t/is-there-a-docker-image-for-the-latest-ansible-2-5-0/26683/1 "2018-02-08T12:41:05Z")

</div>

Hi,

I’m looking for a Docker image to run some playbook and roles with the latest Ansible version?

I tried build my own but I’m not a python user.

> FROM python:3.6.4-alpine3.7
> 
> RUN apk --update add git
> 
> WORKDIR /opt
> 
> RUN git clone [https://github.com/ansible/ansible.git](https://github.com/ansible/ansible.git) --recursive
> 
> WORKDIR /opt/ansible
> 
> RUN sh -c ‘source ./hacking/env-setup’
> 
> RUN pip install -r ./requirements.txt
> 
> WORKDIR /
> 
> # RUN ansible --version

> CMD [“sh”]

Getting the following with pip install -r ./requirements.txt

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [February 8, 2018, 3:08pm UTC](https://forum.ansible.com/t/is-there-a-docker-image-for-the-latest-ansible-2-5-0/26683/2 "2018-02-08T15:08:11Z")

</div>

We do not package ansible in docker containers. There may be unofficial containers, but nothing official.

Doing so is easy enough though, and I do it for a personal project, you can see a Dockerfile at [https://github.com/sivel/ansible-template-ui/blob/master/docker/devel/Dockerfile](https://github.com/sivel/ansible-template-ui/blob/master/docker/devel/Dockerfile) for building it.

My linked Dockerfile is also built to work with alpine.

---

<div class="post-metadata">

**Author:** ![John\_Burwell](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@John\_Burwell](https://forum.ansible.com/u/John_Burwell)\
**Post date:** [February 8, 2018, 3:40pm UTC](https://forum.ansible.com/t/is-there-a-docker-image-for-the-latest-ansible-2-5-0/26683/3 "2018-02-08T15:40:34Z")

</div>

Hi,

If you are running on Linux or macOS, you can also setup a pyenv [1] to create an isolated Python/pip environment to run Ansible.

Thanks,  
-John

[1]: [https://github.com/pyenv/pyenv](https://github.com/pyenv/pyenv)
