Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

github.com/surajupadhaya/containerdashboard

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/surajupadhaya/containerdashboard

Source
Go Modules
Version
v0.0.0-20240512171525-fc29bc06965d
Version published
Created
Source

Go Docker API Dashboard Application

This application provides an interface to interact with Docker containers, allowing users to list containers and serve a dashboard.

Prerequisites

  • Go > 1.20
  • Docker API version > 1.45

Installation

Clone the repository to your local machine:

git clone https://github.com/surajupadhaya/containerDashboard.git

cd containerDashboard

Dependencies

To install the necessary dependencies, run:

go mod init github.com/docker

go mod tidy

This will download the required packages, including the Docker client.

Running the Application

Before running the application, ensure that Docker is running on your system.

To start the application, use:

go run main.go

The application will start an HTTP server on port 8080 and can be accessed at http://localhost:8080

Endpoints

/ContainerHealth: Lists all Docker containers and their status in json image

/Dashboard: Serves the static dashboard HTML file.

image

FAQs

Package last updated on 12 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts