# Creating the container before user opens the application

**URL:** <https://support.openanalytics.eu/t/creating-the-container-before-user-opens-the-application/2046>\
**Category:** ShinyProxy\
**Created:** [September 10, 2021, 2:07pm UTC](https://support.openanalytics.eu/t/creating-the-container-before-user-opens-the-application/2046 "2021-09-10T14:07:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanhry](https://support.openanalytics.eu/user_avatar/support.openanalytics.eu/vanhry/32/631_2.png) [@vanhry](https://support.openanalytics.eu/u/vanhry)\
**Post date:** [September 10, 2021, 2:07pm UTC](https://support.openanalytics.eu/t/creating-the-container-before-user-opens-the-application/2046/1 "2021-09-10T14:07:04Z")

</div>

I deploy a quite large shiny application with shinyproxy, but the launching time is extremely slow (7-10 sec). On the other side, when user open app served by shiny-server, the app is already running, and it launches very fast (it’s obvious because there is no need to initialization).  
But my question is can we make some “prepared container” (we start it allocated the port, but don’t give it to the user), namely always keep “a ready for start container” for user, and when user opens app, then we create the new one for the next user. I think it can help to prevent slow launching but I don’t know if it is possible. I appreciate any help from your side.

---

<div class="post-metadata">

**Author:** ![Sylvain\_Brohee](https://support.openanalytics.eu/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@Sylvain\_Brohee](https://support.openanalytics.eu/u/Sylvain_Brohee)\
**Post date:** [April 21, 2023, 2:24pm UTC](https://support.openanalytics.eu/t/creating-the-container-before-user-opens-the-application/2046/2 "2023-04-21T14:24:03Z")

</div>

This could be a solution

> [@Create running user proxies / containers in advance](https://support.openanalytics.eu/t/create-running-user-proxies-containers-in-advance/2521):
>
> Hello, In order not to loose time and have my app start almost immediately (as R library loading can be quite time-consumming -up to 1 minute), I would like to find a way to preload and prerrun (let’s say every night) a bunch of running containers for each user / app combination. I read that that this was feasible using the API but unfortunately, as we rely on an active directory and as I do not know the password (of course) of the users, I cannot create the proxies linked to a user. Would t…
