1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Find a file
Cory Snider 57d2d6ef62 Update container OOMKilled flag immediately
The OOMKilled flag on a container's state has historically behaved
rather unintuitively: it is updated on container exit to reflect whether
or not any process within the container has been OOM-killed during the
preceding run of the container. The OOMKilled flag would be set to true
when the container exits if any process within the container---including
execs---was OOM-killed at any time while the container was running,
whether or not the OOM-kill was the cause of the container exiting. The
flag is "sticky," persisting through the next start of the container;
only being cleared once the container exits without any processes having
been OOM-killed that run.

Alter the behavior of the OOMKilled flag such that it signals whether
any process in the container had been OOM-killed since the most recent
start of the container. Set the flag immediately upon any process being
OOM-killed, and clear it when the container transitions to the "running"
state.

There is an ulterior motive for this change. It reduces the amount of
state the libcontainerd client needs to keep track of and clean up on
container exit. It's one less place the client could leak memory if a
container was to be deleted without going through libcontainerd.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-08-24 14:59:07 -04:00
.github ci: print Windows daemon event log timestamps 2022-08-23 14:16:21 -04:00
api Update container OOMKilled flag immediately 2022-08-24 14:59:07 -04:00
builder
cli
client
cmd Merge pull request #43971 from thaJeztah/daemon_fix_hosts_validation_step1c3 2022-08-18 21:30:07 +02:00
container Update container OOMKilled flag immediately 2022-08-24 14:59:07 -04:00
contrib
daemon Update container OOMKilled flag immediately 2022-08-24 14:59:07 -04:00
distribution
dockerversion
docs Merge pull request #43657 from thaJeztah/default_builder_version 2022-08-18 20:14:47 +02:00
errdefs
hack
image
integration daemon: kill exec process on ctx cancel 2022-08-23 15:35:30 +02:00
integration-cli integration-cli: add utility to check if snapshotters are enabled 2022-08-24 14:03:15 +02:00
internal/test/suite
layer
libcontainerd Update container OOMKilled flag immediately 2022-08-24 14:59:07 -04:00
libnetwork libnetwork/drivers/ipvlan: fix missing IpvlanFlag field in config JSON 2022-08-24 16:23:32 +08:00
oci
opts
pkg
plugin
profiles seccomp: allow "bpf", "perf_event_open", gated by CAP_BPF, CAP_PERFMON 2022-08-18 18:34:09 +02:00
project
quota
reference
registry
reports
restartmanager
rootless
runconfig
testutil
vendor Merge pull request #43353 from thaJeztah/update_logentries 2022-08-19 18:03:40 +02:00
volume
.DEREK.yml
.dockerignore
.gitattributes
.gitignore
.mailmap
AUTHORS
CHANGELOG.md
codecov.yml
CONTRIBUTING.md
docker-bake.hcl
Dockerfile
Dockerfile.e2e
Dockerfile.simple
Dockerfile.windows
Jenkinsfile
LICENSE
MAINTAINERS
Makefile Makefile: update buildx to v0.9.0 2022-08-17 14:55:39 +02:00
NOTICE
README.md
ROADMAP.md
SECURITY.md
TESTING.md
vendor.mod Merge pull request #43353 from thaJeztah/update_logentries 2022-08-19 18:03:40 +02:00
vendor.sum Merge pull request #43353 from thaJeztah/update_logentries 2022-08-19 18:03:40 +02:00
VENDORING.md

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.