1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Lei Jitang d2e99882b9 Follow up #29365, fix fail to remove container after restart
Call daemon.Mount will increase the refcount of mounted path,
for those previous running containers, `Mount` call will make
the refcount to 2. see
https://github.com/docker/docker/blob/v1.13.0-rc4/daemon/graphdriver/counter.go#L38
```
	if !m.check {
		m.check = true
		if c.checker.IsMounted(path) {
			m.count++
		}
	}
	m.count++

```
graphdrive could restore on reboot after #22541, call
daemon.Mount to resore the graphdriver is not necessary.

And call `daemon.Mount` on restorting will mount all the containers
mounted layer even if it was stop.

This fix call Mount and then Unmount to get `BaseFs`

Signed-off-by: Lei Jitang <leijitang@huawei.com>
2017-01-05 20:27:34 -05:00
..
caps
cluster
events
exec
graphdriver
initlayer
links
logger
network
apparmor_default.go
apparmor_default_unsupported.go
archive.go
archive_unix.go
archive_windows.go
attach.go
auth.go
bindmount_solaris.go
bindmount_unix.go
cache.go
changes.go
checkpoint.go
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
container_operations.go
container_operations_solaris.go
container_operations_unix.go
container_operations_windows.go
create.go
create_unix.go
create_windows.go
daemon.go Follow up #29365, fix fail to remove container after restart 2017-01-05 20:27:34 -05:00
daemon_experimental.go
daemon_linux.go
daemon_linux_test.go
daemon_solaris.go
daemon_test.go
daemon_unix.go
daemon_unix_test.go
daemon_unsupported.go
daemon_windows.go
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
image_push.go
image_tag.go
images.go
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
links_linux.go
links_linux_test.go
links_notlinux.go
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
network.go Swarmkit has enabled the plugin filtering logic based on the drivers 2017-01-04 12:46:56 -08:00
oci_linux.go
oci_solaris.go
oci_windows.go
pause.go
prune.go
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
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