# ContainerNursery

ContainerNursery is a self-hosted infrastructure app. Puts Docker Containers to sleep and wakes them back up when they're needed. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/2730/containernursery

## Description

Puts Docker Containers to sleep and wakes them back up when they're needed. Written in Node.js, this application acts as a HTTP reverse proxy and stops Docker containers which haven't been accessed recently and starts them again when a new request comes in. ContainerNursery also makes sure there are no more active WebSocket connections before stopping the container. To improve the user experience a loading page is presented, which automatically reloads when the containers webserver is ready.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

22/100 (Low), based on 4 of 5 factors.
- Maintained: 0 (last commit 1067 days ago)
- Popular: 48 (256 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Security check: 20 (1 serious finding, 19 minor)

## Security check

1 serious finding: Uses proxy-addr 2.0.7, which has a known critical vulnerability.
Automated checks on commit cf98c97, 5 Nov 2026. Not an audit.

## Links

- Unraid: https://ca.unraid.net/apps/containernursery-1gdibn301mq7qz?q=ContainerNursery

## Common questions

### How does ContainerNursery handle a request to a stopped container?

It acts as an HTTP reverse proxy and starts the container when a new request comes in. A loading page is shown, then automatically reloads when the container's web server is ready.

### Will ContainerNursery stop a container while a WebSocket is still active?

It checks that there are no active WebSocket connections before stopping the container.

### Does ContainerNursery only pause containers or fully stop them?

It stops the container entirely rather than using a simple docker pause. This frees RAM and avoids unnecessary CPU wake-ups.

### What makes a container go to sleep?

ContainerNursery stops Docker containers that have not been accessed recently.

---
Source: Our Local Host (https://ourlocalhost.com/app/2730/containernursery), the self-hosted and open-source app directory.
