# Launch container very slow (40min)

**URL:** <https://forums.suse.com/t/launch-container-very-slow-40min/7337>\
**Category:** Rancher 1.x\
**Created:** [September 15, 2017, 1:16pm UTC](https://forums.suse.com/t/launch-container-very-slow-40min/7337 "2017-09-15T13:16:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![throrin19](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/throrin19/32/1226_2.png) [@throrin19](https://forums.suse.com/u/throrin19)\
**Post date:** [September 15, 2017, 1:16pm UTC](https://forums.suse.com/t/launch-container-very-slow-40min/7337/1 "2017-09-15T13:16:11Z")

</div>

Hi,

I have a problem with rancher (or with my own docker images).  
In my case, I have a stack with one big service (docker Image uncompressed size is 1.22GB) and, when rancher start the container for the first time, it takes 45 minutes to go from start to run status. (In details I see `Waiting: container starting [container:1i2734]`).

Also, time to time, it seems like starting this big container is taking too much ressources and rancher-agent is going wry, passing others containers in the same host in “unhealthy” state

But, with another large docker image (725MB) the time is 10-20 more faster. And I hav’nt this problem with rancher-agent

Is it normal ?

I run rancher on an Azure VM scale set and the VM size are E2\_v3 : 2x2.29Ghz CPU and 15.7GB RAM.

Rancher version : 1.6.5  
Docker version : 1.12.6  
Linux Kernel : 4.4.0

Thanks

---

<div class="post-metadata">

**Author:** ![Listener\_me](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/listener_me/32/5836_2.png) [@Listener\_me](https://forums.suse.com/u/Listener_me)\
**Post date:** [September 24, 2018, 5:39pm UTC](https://forums.suse.com/t/launch-container-very-slow-40min/7337/2 "2018-09-24T17:39:34Z")

</div>

Issue appears to be with secrets stack creating thousands of volume , which went in detached mode. I had tried removing it with rancher cli. Though it appears as getting deleted while cli runs, its not even removing a single volume, getting the following error in rancher logs continuously with each volume delete from rancher cli

2018-09-24 16:53:10,982 ERROR [:] [] [] [] [cutorService-31] [.e.s.i.ProcessInstanceDispatcherImpl] Agent error for [agent.request]: Agent [1287] is removed  
2018-09-24 16:53:11,244 ERROR [c4f9ca42-4657-4feb-b30f-dd1715859cec:40686172] [volume:703371] [volume.remove] [] [cutorService-31]

[c.p.e.p.i.DefaultProcessInstanceImpl] Agent error for [agent.request]: Agent [375916] is removed  
2018-09-24 16:53:11,250 ERROR [:] [] [] [] [cutorService-31] [.e.s.i.ProcessInstanceDispatcherImpl] Agent error for [agent.request]: Agent [375916] is removed  
2018-09-24 16:53:11,507 ERROR [f27ee7e0-8589-40ba-97ba-cd175f6d3b69:40686174] [volume:703373] [volume.remove] [] [cutorService-31]

[c.p.e.p.i.DefaultProcessInstanceImpl] Agent error for [agent.request]: Agent [1287] is removed  
2018-09-24 16:53:11,515 ERROR [:] [] [] [] [cutorService-31] [.e.s.i.ProcessInstanceDispatcherImpl] Agent error for [agent.request]: Agent [1287] is removed
