# Unable to run Jenkins in docker container using Ansible

**URL:** <https://forum.ansible.com/t/unable-to-run-jenkins-in-docker-container-using-ansible/27576>\
**Category:** Ansible Project\
**Created:** [May 21, 2018, 12:02pm UTC](https://forum.ansible.com/t/unable-to-run-jenkins-in-docker-container-using-ansible/27576 "2018-05-21T12:02:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bishwajit\_Samanta](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Post date:** [May 21, 2018, 12:02pm UTC](https://forum.ansible.com/t/unable-to-run-jenkins-in-docker-container-using-ansible/27576/1 "2018-05-21T12:02:22Z")

</div>

Dear All,

I am not able to run jenkins inside docker container using ansible playbook. Jenkins is getting started but unable to run it

- name: Download Jenkins Container  
docker\_container:  
name: Jenkins\_server  
image: jenkins  
state: started  
ports:
- “8080:8080”
- “50000:50000”  
command: sleep 1d  
volumes:
- /data

This is starting the container but not able to run jenkins due to which i am not able to login to jenkins host.

Can anyone guide me what do to ?
