go-docker-socket

Build Go programs that interact with the Docker daemon via the Docker socket.

3|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/raesene/rmm-skills --skill go-docker-socket
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-docker-socket
Source: https://github.com/raesene/rmm-skills/tree/main/go-docker-socket
Command: npx skills add https://github.com/raesene/rmm-skills --skill go-docker-socket

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires github.com/moby/moby/client, github.com/moby/moby/api, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit addresses the challenge of integrating Go code with the Docker socket, providing a clear and concise guide for developers to leverage Docker operations within their Go programs.

Core Features & Use Cases

  • Docker Socket Integration: Detailed instructions for building Go programs that interact with the Docker daemon via the Docker socket.
  • Go Docker Library Usage: Guidelines on utilizing the Moby client library, essential for accessing Docker Engine API from Go.
  • API Conventions: Overview of important API conventions for client initialization and common operations like images and containers.
  • Quick Example: A sample program to list running containers demonstrates practical usage.

Quick Start

Execute the provided Go code to list all running containers on your Docker host using the go-docker-socket skill.

Frequently Asked Questions about go-docker-socket

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I interact with the Docker daemon using Go?

To interact with the Docker daemon using Go, you can use the Moby client library to connect to the Docker socket and execute operations like listing images and containers. This approach provides direct Docker Engine API access.

What is the best way to list running containers in a Go application?

The best way to list running containers in a Go application is to initialize the Moby Docker client library and call its container listing functions. This Skill provides a quick start sample program demonstrating exactly how to retrieve running containers.

Do I need the Moby client library to access the Docker socket in Go?

Yes, you need the Moby client library to access the Docker socket in Go. The Skill depends on github.com/moby/moby/client and github.com/moby/moby/api to handle Docker Engine API conventions and initialize the client connection.

How do I initialize a Docker client in a Go program?

To initialize a Docker client in a Go program, you must follow specific API conventions provided by the Moby client library. This Skill outlines the necessary initialization steps to establish a connection with the Docker daemon via the socket.

What Docker operations can I perform from Go using the Moby client?

Using the Moby client, you can perform common Docker operations from Go such as listing images and listing containers. The Skill guides you through these API conventions to integrate Docker functionality directly into your programs.