# Running OnDemand inside Docker container

**URL:** https://discourse.openondemand.org/t/running-ondemand-inside-docker-container/3832
**Category:** Get Help
**Tags:** question
**Created:** [October 25, 2024, 10:37am UTC](https://discourse.openondemand.org/t/running-ondemand-inside-docker-container/3832 "2024-10-25T10:37:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![varunsv](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/varunsv/32/2438_2.png) [@varunsv](https://discourse.openondemand.org/u/varunsv)
#### Post date: [October 25, 2024, 10:37am UTC](https://discourse.openondemand.org/t/running-ondemand-inside-docker-container/3832/1 "2024-10-25T10:37:16Z")

</div>

Hi,

I am currently building container to run OnDemand from Ubuntu base image. I have set the OnDemand in the container up till authentication, but when I try to log in with the credentials, I do not get the dashboard.  
When I checked the logs I get this error: App 573 output: [2024-10-25 09:15:17 +0200] ERROR “[ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked host: my\_domain\_name.com”.  
I have not mounted the host home directory to the container, instead created a user inside the container, as I am currently only testing the container locally.

Also is it a good idea to run OnDemand inside container and deploying it on login node for production, would it create any issue with the scheduler?

Thank you,  
Varun

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [October 25, 2024, 1:29pm UTC](https://discourse.openondemand.org/t/running-ondemand-inside-docker-container/3832/2 "2024-10-25T13:29:00Z")

</div>

> [@varunsv](#):
>
> Also is it a good idea to run OnDemand inside container and deploying it on login node for production, would it create any issue with the scheduler?

I wouldn’t say it is no. I think deploying the package on a VM/login node is the better route.

If you’re looking to build and interact with a container locally (on your own machine) I’d follow these instructions on how to get a development container going. This is what I use when I need to hack around on something. Note that it’s not meant to run in production, but can give you some insight into what configuration you may be missing.

> <https://github.com/OSC/ondemand/blob/master/DEVELOPMENT.md#fullstack-container>

---

<div class="post-metadata">

### Author: ![varunsv](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/varunsv/32/2438_2.png) [@varunsv](https://discourse.openondemand.org/u/varunsv)
#### Post date: [October 25, 2024, 3:03pm UTC](https://discourse.openondemand.org/t/running-ondemand-inside-docker-container/3832/3 "2024-10-25T15:03:02Z")

</div>

Hi Jeff,

Thanks for the info.  
This one looks good for testing, and for production we will do the VM / bare metal solution.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)
#### Post date: [April 23, 2025, 3:03pm UTC](https://discourse.openondemand.org/t/running-ondemand-inside-docker-container/3832/4 "2025-04-23T15:03:58Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
