# Iam running jenkins master as container im facing issue while setting up dynamic containers as agents

**URL:** <https://community.jenkins.io/t/iam-running-jenkins-master-as-container-im-facing-issue-while-setting-up-dynamic-containers-as-agents/5813>\
**Category:** Using Jenkins\
**Created:** [February 16, 2023, 9:23am UTC](https://community.jenkins.io/t/iam-running-jenkins-master-as-container-im-facing-issue-while-setting-up-dynamic-containers-as-agents/5813 "2023-02-16T09:23:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VinodhkumarVS](https://avatars.discourse-cdn.com/v4/letter/v/91b2a8/32.png) [@VinodhkumarVS](https://community.jenkins.io/u/VinodhkumarVS)\
**Post date:** [February 16, 2023, 9:23am UTC](https://community.jenkins.io/t/iam-running-jenkins-master-as-container-im-facing-issue-while-setting-up-dynamic-containers-as-agents/5813/1 "2023-02-16T09:23:45Z")

</div>

iam running jenkins as Docker container and i need to configure jenkins dynamic agents using docker containers in same machine (in my case jenkins master container and planned agents aslo should be running in Ubuntu instance)

**What i did 🙂**  
i ran jenkins container and one more for jenkins proxy container to communicate over tcp:  
and installed docker plugin and configured docker cloud and check connection success!!  
Now i created one template and given some label as well

But when i try to run sample job on dynamic agent  
getting below error !!

ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins  
Also: java.lang.Throwable: launched here

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [February 23, 2023, 8:45am UTC](https://community.jenkins.io/t/iam-running-jenkins-master-as-container-im-facing-issue-while-setting-up-dynamic-containers-as-agents/5813/2 "2023-02-23T08:45:57Z")

</div>

Hello @VinodhkumarVS and welcome to this community 👋

What is the operating system you’ve installed Jenkins/docker on?  
What is your version of Docker? What is the version of Jenkins you used?  
Does the documentation [example](https://www.jenkins.io/doc/pipeline/tour/agents/) work for you?

---

<div class="post-metadata">

**Author:** ![shadycuz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/shadycuz/32/196_2.png) [@shadycuz](https://community.jenkins.io/u/shadycuz)\
**Post date:** [April 9, 2023, 10:57pm UTC](https://community.jenkins.io/t/iam-running-jenkins-master-as-container-im-facing-issue-while-setting-up-dynamic-containers-as-agents/5813/3 "2023-04-09T22:57:27Z")

</div>

If jenkins is a container you can create other child containers but you can’t pass files/folders from jenkins to the child containers which makes using docker pointless?

---

<div class="post-metadata">

**Author:** ![ctubbsii](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ctubbsii/32/21072_2.png) [@ctubbsii](https://community.jenkins.io/u/ctubbsii)\
**Post date:** [April 24, 2026, 7:19pm UTC](https://community.jenkins.io/t/iam-running-jenkins-master-as-container-im-facing-issue-while-setting-up-dynamic-containers-as-agents/5813/4 "2026-04-24T19:19:14Z")

</div>

I’m seeing the same error. I opened a ticket at [Unable to run containerized agents using Docker Cloud provider plugin · Issue #26696 · jenkinsci/jenkins · GitHub](https://github.com/jenkinsci/jenkins/issues/26696), but it was closed immediately with no investigation into the issue. I’ve already done my due diligence to check for solutions but am stuck.
