The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Cory Snider 6149c333ff daemon: don't checkpoint container until registered
(*Container).CheckpointTo() upserts a snapshot of the container to the
daemon's in-memory ViewDB and also persists the snapshot to disk. It
does not register the live container object with the daemon's container
store, however. The ViewDB and container store are used as the source of
truth for different operations, so having a container registered in one
but not the other can result in inconsistencies. In particular, the List
Containers API uses the ViewDB as its source of truth and the Container
Inspect API uses the container store.

The (*Daemon).setHostConfig() method is called fairly early in the
process of creating a container, long before the container is registered
in the daemon's container store. Due to a rogue CheckpointTo() call
inside setHostConfig(), there is a window of time where a container can
be included in a List Containers API response but "not exist" according
to the Container Inspect API and similar endpoints which operate on a
particular container. Remove the rogue call so that the caller has full
control over when the container is checkpointed and update callers to
checkpoint explicitly. No changes to (*Daemon).create() are needed as it
checkpoints the fully-created container via (*Daemon).Register().

Fixes #44512.

Signed-off-by: Cory Snider <csnider@mirantis.com>
(cherry picked from commit 0141c6db81)
Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-12-13 18:08:21 -05:00
.github update to go1.19.4 2022-12-06 22:58:19 +01:00
api Merge pull request #44360 from neersighted/backport_44224 2022-10-26 10:36:39 -04:00
builder Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-12-09 00:17:18 +01:00
cli add instructions to generate events message table bin 2022-04-14 19:52:36 +02:00
client client/list: Handle SharedSize 2022-11-30 17:14:21 +01:00
cmd use ad-hoc libtrust key 2022-12-03 18:09:16 +01:00
container state/Wait: Fix race when reading exit status 2022-07-29 16:49:56 +02:00
contrib Dockerfile: variant support in frozen-images stage 2022-11-18 15:42:48 +01:00
daemon daemon: don't checkpoint container until registered 2022-12-13 18:08:21 -05:00
distribution Merge pull request #44617 from thaJeztah/23.0_backport_images_errdefs 2022-12-09 21:31:25 +01:00
dockerversion gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
docs Volume prune: only prune anonymous volumes by default 2022-10-05 23:50:01 +02:00
errdefs errdefs: move GetHTTPErrorStatusCode to api/server/httpstatus 2022-03-21 12:22:39 +01:00
hack [23.0] update containerd binary to v1.6.12 (addresses CVE-2022-23471) 2022-12-08 00:51:01 +01:00
image image/store: Use errdefs for errors 2022-12-09 00:17:57 +01:00
integration [23.0] remove libtrust tests 2022-12-03 18:08:29 +01:00
integration-cli Merge pull request #44617 from thaJeztah/23.0_backport_images_errdefs 2022-12-09 21:31:25 +01:00
internal/test/suite integration-cli: move each test suite to its own TestX testing function 2019-09-18 18:26:36 +00:00
layer Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-12-09 00:17:18 +01:00
libcontainerd Fix containerd task deletion after failed start 2022-11-02 16:59:22 -04:00
libnetwork libnetwork/resolvconf: removed unused GetIfChanged() and GetLastModified() 2022-10-01 02:08:44 +02:00
oci runconfig, oci, image, layer, distribution: fix empty-lines (revive) 2022-10-01 00:01:14 +02:00
opts opts: fix empty-lines (revive) 2022-10-01 00:01:13 +02:00
pkg Merge pull request #44415 from thaJeztah/22.06_backport_pkg_thining 2022-11-17 10:48:50 +01:00
plugin plugin: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
profiles seccomp: block socket calls to AF_VSOCK in default profile 2022-12-01 14:09:46 +01:00
project project: Add label kind/regression 2022-06-30 15:08:02 +02:00
quota gofmt GoDoc comments with go1.19 2022-07-13 22:42:29 +02:00
reference remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
registry registry: session: remove unused id 2022-11-29 19:13:02 +01:00
reports Fix typos 2018-05-16 09:15:43 +08:00
restartmanager unconvert: remove unnescessary conversions 2019-09-18 12:57:33 +02:00
rootless rootless: remove redundant sync.Once 2022-04-25 13:53:32 +02:00
runconfig runconfig, oci, image, layer, distribution: fix empty-lines (revive) 2022-10-01 00:01:14 +02:00
testutil Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-12-09 00:17:18 +01:00
vendor Merge pull request #44616 from thaJeztah/23.0_backport_bump_golang_net 2022-12-09 13:06:42 -08:00
volume Volume prune: only prune anonymous volumes by default 2022-10-05 23:50:01 +02:00
.dockerignore ignorefiles: cleanup 2022-11-30 11:15:56 +01:00
.gitattributes chore: fix linguist for Dockerfile 2022-04-27 06:38:41 +02:00
.gitignore ignorefiles: cleanup 2022-11-30 11:15:56 +01:00
.mailmap .mailmap: cleanup and additions 2022-11-30 12:06:21 +01:00
AUTHORS AUTHORS: regenerate 2022-11-30 12:06:21 +01:00
codecov.yml codecov: disable "patch" status 2022-06-07 17:24:46 +02:00
CONTRIBUTING.md Removed the slack archives 2022-01-13 18:30:45 +01:00
docker-bake.hcl ci: gha test workflow for integration and unit test 2022-09-08 13:50:18 +02:00
Dockerfile update to go1.19.4 2022-12-06 22:58:19 +01:00
Dockerfile.e2e update to go1.19.4 2022-12-06 22:58:19 +01:00
Dockerfile.simple update to go1.19.4 2022-12-06 22:58:19 +01:00
Dockerfile.windows [23.0] update containerd binary to v1.6.12 (addresses CVE-2022-23471) 2022-12-08 00:51:01 +01:00
Jenkinsfile Jenkinsfile: Fix dev image build fox ppc64le/s390x archs 2022-11-30 11:16:51 +01:00
LICENSE Update LICENSE 2018-09-12 14:27:53 +01:00
MAINTAINERS Add new people to the curators list 2022-06-23 16:14:04 +02:00
Makefile Makefile: always use buildx 2022-11-30 11:16:36 +01:00
NOTICE switch kr/pty to creack/pty v1.1.7 2019-07-29 16:59:08 -07:00
README.md Add "Lego set" back in README.md 2017-10-10 14:10:39 +00:00
ROADMAP.md Fix some typos in ROADMAP.md 2019-01-25 14:27:13 +08:00
SECURITY.md Update SECURITY.md to have an option to keep name anonymous if requested. 2019-06-18 16:37:16 +00:00
TESTING.md TESTING.md: note that integration-cli is deprecated 2020-12-18 07:51:46 +01:00
vendor.mod Merge pull request #44616 from thaJeztah/23.0_backport_bump_golang_net 2022-12-09 13:06:42 -08:00
vendor.sum Merge pull request #44616 from thaJeztah/23.0_backport_bump_golang_net 2022-12-09 13:06:42 -08:00
VENDORING.md fix the bare url and the Summary of http://semver.org 2017-01-17 16:20:11 +08:00

The Moby Project

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 system, 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, and are not intended for customers who want enterprise or commercial support; Docker EE is the appropriate product for these use cases.


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.