MCPcopy
hub / github.com/moby/moby

github.com/moby/moby @docker-v29.6.1 sqlite

repository ↗ · DeepWiki ↗ · release docker-v29.6.1 ↗
16,621 symbols 95,715 edges 2,160 files 6,773 documented · 41%
README

The Moby Project

PkgGoDev GitHub License Go Report Card OpenSSF Scorecard OpenSSF Best Practices

Moby Project logo

Moby is an open-source project created by Docker to enable and accelerate software containerization.

It provides a "Lego set" of toolkit components, the framework for assembling them into custom container-based systems, and a place for all container enthusiasts and professionals to experiment and exchange ideas. Components include container build tools, a container registry, orchestration tools, a runtime and more, and these can be used as building blocks in conjunction with other tools and projects.

Principles

Moby is an open project guided by strong principles, aiming to be modular, flexible and without too strong an opinion on user experience. It is open to the community to help set its direction.

  • Modular: the project includes lots of components that have well-defined functions and APIs that work together.
  • Batteries included but swappable: Moby includes enough components to build fully featured container systems, but its modular architecture ensures that most of the components can be swapped by different implementations.
  • Usable security: Moby provides secure defaults without compromising usability.
  • Developer focused: The APIs are intended to be functional and useful to build powerful tools. They are not necessarily intended as end user tools but as components aimed at developers. Documentation and UX is aimed at developers not end users.

Audience

The Moby Project is intended for engineers, integrators and enthusiasts looking to modify, hack, fix, experiment, invent and build systems based on containers. It is not for people looking for a commercially supported system, but for people who want to work and learn with open source code.

Relationship with Docker

The components and tools in the Moby Project are initially the open source components that Docker and the community have built for the Docker Project. New projects can be added if they fit with the community goals. Docker is committed to using Moby as the upstream for the Docker Product. However, other projects are also encouraged to use Moby as an upstream, and to reuse the components in diverse ways, and all these uses will be treated in the same way. External maintainers and contributors are welcomed.

The Moby project is not intended as a location for support or feature requests for Docker products, but as a place for contributors to work on open source code, fix bugs, and make the code more useful. The releases are supported by the maintainers, community and users, on a best efforts basis only. For customers who want enterprise or commercial support, Docker Desktop and Mirantis Container Runtime are the appropriate products for these use cases.

Go modules

[!IMPORTANT] Starting with Docker v29 (released November 2025), the Go module github.com/docker/docker is deprecated and won't be updated.

The supported public Go modules are:

Module Description
github.com/moby/moby/client Go client for the Docker Engine API
github.com/moby/moby/api API types shared between client and server

The root module github.com/moby/moby/v2 is the codebase for building container engines based on Moby (such as Docker Engine). It produces binaries only - it is not intended to be imported as a Go library and has no API stability guarantees.

Release tags

Docker Engine releases are tagged with a docker- prefix (e.g. docker-v29.0.0 for Docker Engine 29.0.0).

These tags are only used to build the Docker Engine binary from the root module - they must not be consumed via go get.

The client and api modules are versioned independently with their own tags (e.g. client/v1.x.x, api/v1.x.x).

Migrating from github.com/docker/docker

Replace the old import paths:

- import "github.com/docker/docker/client"
+ import "github.com/moby/moby/client"

- import "github.com/docker/docker/api/types"
+ import "github.com/moby/moby/api/types"

Note that v29 includes many breaking API changes (option structs, renamed methods, moved types). See the v29.0.0 release notes for the full list of Go SDK changes.


Legal

Brought to you courtesy of our legal counsel. For more context, please see the NOTICE document in this repo.

Use and transfer of Moby may be subject to certain restrictions by the United States and other governments.

It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.

For more information, please see https://www.bis.doc.gov

Licensing

Moby is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Extension points exported contracts — how you extend this code

Output (Interface)
Output is an interface for writing progress information. It's like a writer for progress, but we don't call it Writer be [6 …
client/pkg/progress/progress.go
ErrNotFound (Interface)
ErrNotFound signals that the requested object doesn't exist [10 implementers]
errdefs/defs.go
SizeReaderAt (Interface)
SizeReaderAt is an interface used to get a ReaderAt as well as the size of the underlying reader. Note that the size of [29 …
pkg/tailfile/tailfile.go
SetupTestSuite (Interface)
SetupTestSuite has a SetupTest method, which will run before each test in the suite. [9 implementers]
internal/test/suite/interfaces.go
Proxy (Interface)
Proxy defines the behavior of a proxy. It forwards traffic back and forth between two endpoints : the frontend and the b [6 …
cmd/docker-proxy/proxy_linux.go
LogReader (Interface)
LogReader is the interface for reading log messages for loggers that support reading. [9 implementers]
daemon/logger/logger.go
KVObject (Interface)
KVObject is Key/Value interface used by objects to be part of the Store. [13 implementers]
daemon/libnetwork/datastore/datastore.go
Runner (Interface)
Runner is used to run the daemon command [12 implementers]
daemon/command/docker.go

Core symbols most depended-on inside this repo

Equal
called by 2685
daemon/libnetwork/types/types.go
Errorf
called by 2602
daemon/internal/nri/logshim.go
DockerCmd
called by 1796
integration-cli/cli/cli.go
Contains
called by 1353
daemon/libnetwork/network.go
Join
called by 1088
daemon/server/router/swarm/backend.go
New
called by 967
daemon/libnetwork/datastore/datastore.go
Unlock
called by 898
daemon/logger/journald/internal/sdjournal/sdjournal.go
Run
called by 898
daemon/command/docker.go

Shape

Method 7,974
Function 6,231
Struct 1,843
Interface 297
TypeAlias 193
FuncType 83

Languages

Go100%
Python1%

Modules by API surface

integration-cli/docker_cli_build_test.go258 symbols
integration-cli/docker_cli_run_test.go240 symbols
daemon/libnetwork/networkdb/networkdb.pb.go188 symbols
client/client_interfaces.go135 symbols
daemon/libnetwork/network.go117 symbols
integration-cli/check_test.go85 symbols
integration-cli/docker_cli_daemon_test.go82 symbols
daemon/libnetwork/internal/nftables/nftables_linux.go77 symbols
integration-cli/docker_cli_network_unix_test.go76 symbols
integration-cli/docker_cli_run_unix_test.go74 symbols
errdefs/helpers.go66 symbols
integration-cli/docker_cli_swarm_test.go64 symbols

Dependencies from manifests, versioned

cloud.google.com/gov0.123.0 · 1×
cloud.google.com/go/authv0.20.0 · 1×
cloud.google.com/go/auth/oauth2adaptv0.2.8 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/loggingv1.18.0 · 1×
cloud.google.com/go/longrunningv1.0.0 · 1×
code.cloudfoundry.org/clockv1.60.0 · 1×
cyphar.com/go-pathrsv0.2.1 · 1×
dario.cat/mergov1.0.2 · 1×
github.com/AdaLogics/go-fuzz-headersv0.0.0-2024080614160 · 1×
github.com/Azure/azure-sdk-for-go/sdk/azcorev1.21.1 · 1×
github.com/Azure/azure-sdk-for-go/sdk/internalv1.12.0 · 1×

For agents

$ claude mcp add moby \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact