Skip to main content

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)

  1. Install in your NetBox venv:
    pip install -e /path/to/netbox_container_plugin
    
  2. Add to PLUGINS in configuration.py:
    PLUGINS = [
        "netbox_containers",
    ]
    
  3. Run migrations:
    python /opt/netbox/netbox/manage.py migrate netbox_containers
    
  4. 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.

Data Model (high level)

  • ContainerPod (FK)
  • NetworkAttachment connects a Container or Pod to a Network or custom options
  • Mount belongs to a Container
  • ContainerSecret attaches a Secret to a Container
  • Secret has 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.

License

See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_containers-0.1.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_containers-0.1.0-py3-none-any.whl (73.7 kB view details)

Uploaded Python 3

File details

Details for the file netbox_containers-0.1.0.tar.gz.

File metadata

  • Download URL: netbox_containers-0.1.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.11

File hashes

Hashes for netbox_containers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62a2fcb9c5b34b5f6ff9650e17e7427dab920c72ada8bb35c71e0033d961a86f
MD5 11e29cb7cc49aa295d261a361f06b62d
BLAKE2b-256 8fbe6caf1a2d92832743551e860e52c60e5694e817772a2d1d892674b8aaa01f

See more details on using hashes here.

File details

Details for the file netbox_containers-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_containers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9da6c4ff540d9acd9f9d21bb192613e746da5c35e0bc3905711f75e6f1a66ccd
MD5 bdaf57d213775388fafd20a9af264606
BLAKE2b-256 0ab31f85544490a6f46bd5c606e5960f1fe22b07b2d16d8e3a09c4ec08be8b5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page