Files
docker-cli/components/engine/daemon
Aaron Lehmann 107190981d Store container names in memdb
Currently, names are maintained by a separate system called "registrar".
This means there is no way to atomically snapshot the state of
containers and the names associated with them.

We can add this atomicity and simplify the code by storing name
associations in the memdb. This removes the need for pkg/registrar, and
makes snapshots a lot less expensive because they no longer need to copy
all the names. This change also avoids some problematic behavior from
pkg/registrar where it returns slices which may be modified later on.

Note that while this change makes the *snapshotting* atomic, it doesn't
yet do anything to make sure containers are named at the same time that
they are added to the database. We can do that by adding a transactional
interface, either as a followup, or as part of this PR.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 1128fc1add66a849c12d2045aed39605e673abc6
Component: engine
2017-07-13 12:35:00 -07:00
..
2017-07-03 13:13:09 -07:00
2017-05-18 10:57:10 +08:00
2017-05-16 14:25:32 -07:00
2017-07-13 12:35:00 -07:00
2017-06-27 11:59:49 -07:00
2017-07-03 11:23:15 -07:00
2017-07-13 12:35:00 -07:00
2017-07-13 12:35:00 -07:00
2017-07-13 12:35:00 -07:00
2017-05-16 15:11:39 -07:00
2017-06-27 11:59:49 -07:00
2017-06-27 11:59:49 -07:00
2017-06-27 11:59:49 -07:00
2017-06-11 23:31:47 +02:00
2017-06-27 11:59:49 -07:00
2017-07-12 10:35:48 -04:00
2016-12-01 09:38:08 -08:00
2017-07-13 12:35:00 -07:00
2017-05-12 00:30:09 -04:00
2017-07-13 12:35:00 -07:00
2017-06-07 11:45:33 -04:00
2017-07-03 13:13:09 -07:00
2017-07-13 12:35:00 -07:00
2016-12-27 21:46:52 +08:00
2017-05-16 11:30:06 -07:00
2017-06-23 07:52:34 -07:00
2017-05-16 15:11:39 -07:00
2017-07-03 13:13:09 -07:00
2017-05-16 15:11:39 -07:00
2017-06-07 11:45:33 -04:00