1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Stephen J Day 516792001a cluster/executor: check mounts at start
While it is important to not create controllers for an invalid task,
certain properties should only be checked immediately before use. Early
host validation of mounts prevents resolution of the task Executor when
the mounts are not relevant to execution flow. In this case, we have a
check for the existence of a bind mount path in a creation function that
prevents a task controller from being resolved. Such early validation
prevents one from interacting directly with a controller and result in
unnecessary error reporting.

In accordance with the above, we move the validation of the existence of
host bind mount paths to the `Controller.Start` phase. We also call
these "checks", as they are valid mounts but reference non-existent
paths.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 92899ffac8)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2017-02-06 15:02:23 -08:00
..
caps
cluster cluster/executor: check mounts at start 2017-02-06 15:02:23 -08:00
events
exec
graphdriver Moves graphdriver plugn docs out of experimental 2017-01-03 21:58:43 -05:00
initlayer Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
links
logger Fix a error of the function 'CopyMessage' in 'daemon/logger/logger.go' 2016-11-30 14:08:05 -08:00
network
apparmor_default.go daemon: switch to 'ensure' workflow for AppArmor profiles 2016-12-12 16:16:50 -08:00
apparmor_default_unsupported.go daemon: switch to 'ensure' workflow for AppArmor profiles 2016-12-12 16:16:50 -08:00
archive.go
archive_unix.go
archive_windows.go
attach.go
auth.go
bindmount_solaris.go
bindmount_unix.go
cache.go
changes.go
checkpoint.go Restrict checkpoint name to prevent directory traversal 2016-11-28 11:17:55 -08:00
cluster.go
commit.go commit: do not change container labels on commit 2017-01-04 12:42:42 +01:00
config.go
config_common_unix.go
config_experimental.go
config_solaris.go
config_test.go
config_unix.go
config_unix_test.go
config_windows.go
config_windows_test.go
container.go xFix issue for --hostname when running in "--net=host" 2016-12-09 14:42:16 -08:00
container_operations.go xFix issue for --hostname when running in "--net=host" 2016-12-09 14:42:16 -08:00
container_operations_solaris.go
container_operations_unix.go
container_operations_windows.go
create.go xFix issue for --hostname when running in "--net=host" 2016-12-09 14:42:16 -08:00
create_unix.go
create_windows.go
daemon.go Merge pull request from vieux/1.13.1-rc1-cherrypicks 2017-01-26 19:21:38 -08:00
daemon_experimental.go
daemon_linux.go
daemon_linux_test.go
daemon_solaris.go Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
daemon_test.go
daemon_unix.go do not create init-dir if not needed 2017-01-24 17:00:52 -08:00
daemon_unix_test.go
daemon_unsupported.go
daemon_windows.go Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
debugtrap.go
debugtrap_unix.go
debugtrap_unsupported.go
debugtrap_windows.go
delete.go
delete_test.go
discovery.go
discovery_test.go
disk_usage.go
errors.go
events.go
events_test.go
exec.go
exec_linux.go
exec_solaris.go
exec_windows.go
export.go
getsize_unix.go
health.go
health_test.go
image.go
image_delete.go
image_exporter.go
image_history.go
image_inspect.go
image_pull.go Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
image_push.go Implement content addressability for plugins 2016-12-27 13:31:14 -08:00
image_tag.go
images.go Ensure proper value is used when computing reclaimable space 2017-01-24 15:41:06 -08:00
import.go
info.go
info_unix.go
info_windows.go
inspect.go
inspect_solaris.go
inspect_unix.go
inspect_windows.go
keys.go
keys_unsupported.go
kill.go
links.go Windows: Factor out sqlite 2016-12-02 13:40:06 -08:00
links_linux.go Windows: Factor out sqlite 2016-12-02 13:40:06 -08:00
links_linux_test.go Windows: Factor out sqlite 2016-12-02 13:40:06 -08:00
links_notlinux.go Windows: Factor out sqlite 2016-12-02 13:40:06 -08:00
list.go
list_unix.go
list_windows.go
logdrivers_linux.go
logdrivers_windows.go
logs.go
logs_test.go
metrics.go
monitor.go
monitor_linux.go
monitor_solaris.go
monitor_windows.go
mounts.go
names.go Restrict checkpoint name to prevent directory traversal 2016-11-28 11:17:55 -08:00
network.go Remove attachable network on swarm leave 2017-01-26 04:31:34 -08:00
oci_linux.go do not require custom build of tini 2017-01-24 16:31:39 -08:00
oci_solaris.go
oci_windows.go Windows: Unify workdir handling 2017-02-03 00:40:46 -08:00
pause.go
prune.go Convert DanglingOnly to Filters for docker image prune 2016-12-07 16:08:18 -08:00
rename.go
resize.go
restart.go
search.go
search_test.go
seccomp_disabled.go
seccomp_linux.go
seccomp_unsupported.go
secrets.go
secrets_linux.go
secrets_unsupported.go
selinux_linux.go
selinux_unsupported.go
start.go fix , reset container if container start failed 2016-12-07 16:16:55 -08:00
start_unix.go
start_windows.go
stats.go
stats_collector.go
stats_collector_solaris.go
stats_collector_unix.go
stats_collector_windows.go
stats_unix.go
stats_windows.go
stop.go
top_unix.go
top_unix_test.go
top_windows.go
unpause.go
update.go Fix update clear the restart policy of monitor 2017-01-04 12:44:55 +01:00
update_linux.go
update_solaris.go
update_windows.go
volumes.go
volumes_unit_test.go
volumes_unix.go
volumes_windows.go
wait.go
workdir.go