# Create new container using api?

**URL:** <https://forums.suse.com/t/create-new-container-using-api/2621>\
**Category:** Rancher 1.x\
**Created:** [April 27, 2016, 8:13pm UTC](https://forums.suse.com/t/create-new-container-using-api/2621 "2016-04-27T20:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtuman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/virtuman/32/1046_2.png) [@virtuman](https://forums.suse.com/u/virtuman)\
**Post date:** [April 27, 2016, 8:13pm UTC](https://forums.suse.com/t/create-new-container-using-api/2621/1 "2016-04-27T20:13:33Z")

</div>

Is it possible to create new container using API? Couldn’t find it in the API docs.

Want I’m trying to achieve is this:  
we use GIT CI tools to run test cases, if all passes, i want to call API to spin up a container with a couple of ENV variables and the branch name, so that new container can pull in code form that particular branch on start and remain active for manual testing.

Thank you

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 27, 2016, 8:24pm UTC](https://forums.suse.com/t/create-new-container-using-api/2621/2 "2016-04-27T20:24:40Z")

</div>

[http://docs.rancher.com/rancher/api/api-resources/container/#operations](http://docs.rancher.com/rancher/api/api-resources/container/#operations)

---

<div class="post-metadata">

**Author:** ![virtuman](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/virtuman/32/1046_2.png) [@virtuman](https://forums.suse.com/u/virtuman)\
**Post date:** [April 27, 2016, 9:27pm UTC](https://forums.suse.com/t/create-new-container-using-api/2621/5 "2016-04-27T21:27:40Z")

</div>

can i use /container end point to create container in stack ?

---

<div class="post-metadata">

**Author:** ![Dan\_Skorski](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dan\_Skorski](https://forums.suse.com/u/Dan_Skorski)\
**Post date:** [October 28, 2016, 3:26am UTC](https://forums.suse.com/t/create-new-container-using-api/2621/6 "2016-10-28T03:26:04Z")

</div>

If someone else gets here via google… the best way to figure this out is with the debug console in chrome. If you add your container through the UI and then check the network tab of the debug console, you will get the exact data you need to recreate your container algorithmically. I would assume the same is true for everything else through the web ui.
