container-info

command module
v0.0.0-...-88829bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

README

container-info

A tiny Golang API that returns metadata of all Docker containers.

I created this because I wanted a simple way to get the status of the various services that run my home network without returning sensitive information (such as my network configuration, volume bindings or entrypoint arguments).

You can see a live instance of this here, and in use here!

docker-compose example
version: "3.7"

services:
  container-info:
    container_name: status
    image: "ghcr.io/tetra-fox/container-info:latest"
    ports:
      - "3621:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock # So we can get information from Docker!
Endpoints
Method Endpoint Description
GET / Returns the metadata of all containers.
GET /{name(s)} Returns the metadata of the specified container(s). (comma-separated)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL