NetBox plugin to manage Podman/Docker container environments
Project description
NetBox Containers Plugin
Plugin to document containers, pods, networks, volume mounts and secrets in NetBox.
Status: This plugin is under active development and is not recommended for production use yet!
It will support Podman and Docker - other container engines aren't supported, by may work if they use the same logic and Podman and Docker.
Features
- Containers with mounts, network attachments, secrets, infra flag, devices/VMs, tags, and comments
- Pods with infra container, network attachments, add-host, devices/VMs, tags, and comments
- Networks with attachments to containers/pods and IPAM integration
- Images and image tags
- Volumes and mounts
- Secrets (driver + options)
Requirements
- NetBox 4.4.x–4.5.x
- Python 3.12 (or newer)
Installation (dev)
- Install in your NetBox venv:
pip install -e /path/to/netbox_container_plugin
- Add to
PLUGINSinconfiguration.py:PLUGINS = [ "netbox_containers", ]
- Run migrations:
python /opt/netbox/netbox/manage.py migrate netbox_containers
- Restart NetBox.
Usage
- Containers: add mounts, networks, and secrets via “Add Components” on the container detail page.
- Pods: add network attachments via “Add Components” on the pod detail page.
- Network attachments support both “User defined network” and custom modes (none/host/private/custom).
- Secrets can be attached to containers with type (mount/env), target, and optional uid/gid/mode.
Documentation
- End-user documentation is available in
docs/. - GitHub Pages publishing guidance is in
docs/github-pages.md.
Data Model (high level)
Container↔Pod(FK)NetworkAttachmentconnects aContainerorPodto aNetworkor custom optionsMountbelongs to aContainerContainerSecretattaches aSecretto aContainerSecrethas name, driver, options (text)
Development notes
- Migrations live in
netbox_containers/migrations/ - If you’re copying files to a remote NetBox server, restart NetBox after each change.
- See
CONTRIBUTING.mdfor contribution workflow, required changelog fragments, and PR expectations.
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netbox_containers-0.2.0.tar.gz.
File metadata
- Download URL: netbox_containers-0.2.0.tar.gz
- Upload date:
- Size: 43.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b43ffeba5d3ae2639cbe959d865b8bac0d11d8ba45b4a0907ad31d3f733651a9
|
|
| MD5 |
564ea45e62c42237d04922dbad7b9378
|
|
| BLAKE2b-256 |
0fce980ddcf42fd0579ff733372c020f9074cb5e59fde9285b5ce1f13ab65881
|
File details
Details for the file netbox_containers-0.2.0-py3-none-any.whl.
File metadata
- Download URL: netbox_containers-0.2.0-py3-none-any.whl
- Upload date:
- Size: 82.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52be8dab39383434647829a7242114203bb0948fa28b15115c32bf5b1e642d28
|
|
| MD5 |
da3bdb38f89c691bc194cd76b904ecd0
|
|
| BLAKE2b-256 |
2e2cb8289576886879206fe24648785c53c87f9e19911ec2f06aa319c7e99556
|