1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Brian Goff 426e610e43 Use runtime spec modifier for metrics plugin hook
Currently the metrics plugin uses a really hackish host mount with
propagated mounts to get the metrics socket into a plugin after the
plugin is alreay running.
This approach ends up leaking mounts which requires setting the plugin
manager root to private, which causes some other issues.

With this change, plugin subsystems can register a set of modifiers to
apply to the plugin's runtime spec before the plugin is ever started.
This will help to generalize some of the customization work that needs
to happen for various plugin subsystems (and future ones).

Specifically it lets the metrics plugin subsystem append a mount to the
runtime spec to mount the metrics socket in the plugin's mount namespace
rather than the host's and prevetns any leaking due to this mount.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2018-02-07 15:48:26 -05:00
..
caps Copy Inslice() to those parts that use it 2017-11-10 13:42:38 +08:00
cluster Fix issue of ExitCode and PID not show up in Task.Status.ContainerStatus 2018-01-31 15:35:19 +00:00
config Log active configuration when reloading 2018-01-21 00:56:02 +01:00
discovery Add ineffassign linter 2017-09-08 18:23:21 -04:00
events Update TestLogEvents to not use deprecated Status field 2017-12-20 12:49:51 +01:00
exec Remove libcontainerd.IOPipe 2018-01-09 12:00:28 -05:00
graphdriver Merge pull request #36114 from Microsoft/jjh/fixdeadlock-lcowdriver-hotremove 2018-01-29 09:57:43 -08:00
initlayer Remove redundant build-tags 2017-12-18 17:41:53 +01:00
links
listeners Remove Solaris files 2017-12-18 17:22:25 +01:00
logger Merge pull request #36078 from mixja/multiline-max-event-processing 2018-01-24 12:06:49 -08:00
names
network Typo fixed and simple code. 2017-10-18 10:26:58 +08:00
stats Remove redundant build-tags 2017-12-18 17:41:53 +01:00
testdata Remove libtrust dep from api 2017-09-06 12:05:19 -04:00
apparmor_default.go
apparmor_default_unsupported.go
archive.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
archive_tarcopyoptions.go
archive_tarcopyoptions_unix.go
archive_tarcopyoptions_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
archive_unix.go LCOW: API change JSON header to string POST parameter 2017-10-06 15:26:48 -07:00
archive_windows.go
attach.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
auth.go
bindmount_unix.go
build.go Address feedback from Tonis 2018-01-18 12:30:39 -08:00
cache.go LCOW: Re-coalesce stores 2018-01-18 08:29:19 -08:00
changes.go
checkpoint.go Don't append the container id to custom directory checkpoints. Fixes #34601. 2017-12-04 14:24:35 -05:00
cluster.go
commit.go Address feedback from Tonis 2018-01-18 12:30:39 -08:00
configs.go
configs_linux.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
configs_unsupported.go
configs_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
container.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
container_linux.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
container_operations.go Fix race in attachable network attachment 2018-02-02 13:46:23 -05:00
container_operations_unix.go Fix secret and config mode issue 2018-01-28 16:21:41 +00:00
container_operations_windows.go Merge pull request #35414 from madhanrm/hotadd1 2018-02-06 10:40:39 -08:00
container_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
create.go Verify NetworkingConfig to make sure EndpointSettings is not nil 2018-01-22 16:31:10 +00:00
create_test.go Verify NetworkingConfig to make sure EndpointSettings is not nil 2018-01-22 16:31:10 +00:00
create_unix.go LCOW: API: Add platform to /images/create and /build 2017-10-06 11:44:18 -07:00
create_windows.go LCOW: API: Add platform to /images/create and /build 2017-10-06 11:44:18 -07:00
daemon.go Fix race in attachable network attachment 2018-02-02 13:46:23 -05:00
daemon_linux.go
daemon_linux_test.go Added validation of isolation settings on daemon.verifyContainerSettings 2017-11-20 10:34:20 +01:00
daemon_test.go Merge pull request #36021 from yongtang/30897-follow-up 2018-01-16 09:38:16 +01:00
daemon_unix.go Daemon: passdown the --oom-kill-disable option to containerd 2018-02-05 03:25:59 +00:00
daemon_unix_test.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
daemon_unsupported.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
daemon_windows.go Move reload-related functions to reload.go 2018-01-21 00:55:49 +01:00
daemon_windows_test.go Ensure Host Network Service exists 2017-09-25 11:07:44 -07:00
debugtrap_unix.go
debugtrap_unsupported.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
debugtrap_windows.go Fix startup logging 2017-10-19 11:09:29 -07:00
delete.go daemon.cleanupContainer: nullify container RWLayer upon release 2018-01-30 18:50:59 -08:00
delete_test.go
dependency.go
disk_usage.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
errors.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
events.go
events_test.go
exec.go Merge pull request #35744 from ndeloof/35702 2018-01-19 15:03:50 -08:00
exec_linux.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
exec_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
export.go Address feedback from Tonis 2018-01-18 12:30:39 -08:00
getsize_unix.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
health.go introduce « exec_die » event 2018-01-08 11:42:25 +01:00
health_test.go container: protect the health status with mutex 2017-11-16 15:04:01 -08:00
image.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
image_delete.go Address feedback from Tonis 2018-01-18 12:30:39 -08:00
image_exporter.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
image_history.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
image_inspect.go Address feedback from Tonis 2018-01-18 12:30:39 -08:00
image_pull.go LCOW: Re-coalesce stores 2018-01-18 08:29:19 -08:00
image_push.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
image_tag.go LCOW: Re-coalesce stores 2018-01-18 08:29:19 -08:00
images.go Address feedback from Tonis 2018-01-18 12:30:39 -08:00
import.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
info.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
info_unix.go Use containerd API to get version 2017-11-03 01:46:58 +01:00
info_unix_test.go
info_windows.go
inspect.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
inspect_linux.go Remove Solaris files 2017-12-18 17:22:25 +01:00
inspect_windows.go
keys.go
keys_unsupported.go
kill.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
links.go
list.go Merge pull request #35938 from yongtang/35931-filter-before-since 2018-01-24 12:06:19 -08:00
list_unix.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
list_windows.go
logdrivers_linux.go
logdrivers_windows.go Add gelf log driver plugin to Windows build 2017-10-03 12:42:54 -07:00
logs.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
logs_test.go
metrics.go Use runtime spec modifier for metrics plugin hook 2018-02-07 15:48:26 -05:00
metrics_unix.go Use runtime spec modifier for metrics plugin hook 2018-02-07 15:48:26 -05:00
metrics_unsupported.go
monitor.go introduce « exec_die » event 2018-01-08 11:42:25 +01:00
monitor_linux.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
monitor_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
mounts.go
names.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
network.go Merge pull request #36021 from yongtang/30897-follow-up 2018-01-16 09:38:16 +01:00
oci_linux.go Use proc/exe for reexec 2018-01-26 14:13:43 -05:00
oci_linux_test.go Fix "duplicate mount point" when --tmpfs /dev/shm is used 2017-11-20 18:48:27 -08:00
oci_windows.go Merge pull request #35830 from cpuguy83/unbindable_shm 2018-01-19 17:43:30 -08:00
pause.go Golint: remove redundant ifs 2018-01-15 00:42:25 +01:00
prune.go LCOW: Refactor to multiple layer-stores based on feedback 2018-01-18 08:31:05 -08:00
reload.go Libnetwork revendoring 2018-02-02 14:36:32 -08:00
reload_test.go Libnetwork revendoring 2018-02-02 14:36:32 -08:00
reload_unix.go Move reload-related functions to reload.go 2018-01-21 00:55:49 +01:00
reload_windows.go Move reload-related functions to reload.go 2018-01-21 00:55:49 +01:00
rename.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
resize.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
restart.go
search.go Replace uses of filters.ToParam(), FromParam() with filters.ToJSON(), FromJSON() 2017-09-26 13:59:45 +02:00
search_test.go
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
secrets_unsupported.go
secrets_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
selinux_linux.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
selinux_unsupported.go
start.go Merge pull request #35830 from cpuguy83/unbindable_shm 2018-01-19 17:43:30 -08:00
start_unix.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
start_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
stats.go Remove solaris files 2017-10-24 15:39:34 -04:00
stats_collector.go
stats_unix.go
stats_windows.go
stop.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
top_unix.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
top_unix_test.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
top_windows.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
trustkey.go Remove libtrust dep from api 2017-09-06 12:05:19 -04:00
trustkey_test.go Remove libtrust dep from api 2017-09-06 12:05:19 -04:00
unpause.go Golint: remove redundant ifs 2018-01-15 00:42:25 +01:00
update.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
update_linux.go Ensure CPU quota/period updates are sent to runc 2018-01-16 11:50:14 -05:00
update_windows.go Remove Solaris files 2017-12-18 17:22:25 +01:00
volumes.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
volumes_unit_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volumes_unix.go Merge pull request #34224 from estesp/no-chown-nwfiles-outside-metadata 2017-11-02 15:00:42 -07:00
volumes_unix_test.go
volumes_windows.go Remove redundant build-tags 2017-12-18 17:41:53 +01:00
wait.go
workdir.go