Skip to main content

NetBox plugin to manage Podman/Docker container environments

Project description

NetBox Containers Plugin

Release License CI Docs PyPI Python NetBox

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.

Documentation

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.
  • See CONTRIBUTING.md for contribution workflow, required changelog fragments, and PR expectations.

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.2.0.tar.gz (43.9 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.2.0-py3-none-any.whl (82.8 kB view details)

Uploaded Python 3

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

Hashes for netbox_containers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b43ffeba5d3ae2639cbe959d865b8bac0d11d8ba45b4a0907ad31d3f733651a9
MD5 564ea45e62c42237d04922dbad7b9378
BLAKE2b-256 0fce980ddcf42fd0579ff733372c020f9074cb5e59fde9285b5ce1f13ab65881

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_containers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52be8dab39383434647829a7242114203bb0948fa28b15115c32bf5b1e642d28
MD5 da3bdb38f89c691bc194cd76b904ecd0
BLAKE2b-256 2e2cb8289576886879206fe24648785c53c87f9e19911ec2f06aa319c7e99556

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