docs/daemon
Vivek Goyal 40945fc186 container: Do not remove contianer if any of the resource failed cleanup
Do not remove container if any of the resource could not be cleaned up. We
don't want to leak resources.

Two new states have been created. RemovalInProgress and Dead. Once container
is Dead, it can not be started/restarted. Dead container signifies the
container where we tried to remove it but removal failed. User now needs to
figure out what went wrong, corrent the situation and try cleanup again.

RemovalInProgress signifies that container is already being removed. Only
one removal can be in progress.

Also, do not allow start of a container if it is already dead or removal is
in progress.

Also extend existing force option (-f) to docker rm to not return an error
and remove container from user view even if resource cleanup failed.
This will allow a user to get back to old behavior where resources
might leak but atleast user will be able to make progress.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
2015-03-31 09:51:19 -04:00
..
execdriver Merge pull request #11933 from LK4D4/fix_err_mask 2015-03-30 17:12:35 -07:00
graphdriver Fix AUFS logrus build errors on import 2015-03-30 11:46:44 -07:00
logger Removed unused "mutex" field 2015-03-23 19:05:21 -07:00
networkdriver Ensure that bridge driver does not use global mappers 2015-03-30 18:28:24 -07:00
README.md Add readme for daemon directory 2014-05-17 17:56:02 +00:00
attach.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
changes.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
commit.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
config.go add syslog driver 2015-03-21 18:01:18 -07:00
container.go container: Do not remove contianer if any of the resource failed cleanup 2015-03-31 09:51:19 -04:00
container_unit_test.go Ensure container names start with a-zA-Z0-9 2014-09-12 10:45:07 -07:00
copy.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
create.go Fix error from daemon no such image even when the image exist 2015-03-28 09:07:20 +08:00
daemon.go Ensure that bridge driver does not use global mappers 2015-03-30 18:28:24 -07:00
daemon_aufs.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
daemon_btrfs.go update go import path and libcontainer 2014-07-24 22:19:50 +00:00
daemon_devicemapper.go update go import path and libcontainer 2014-07-24 22:19:50 +00:00
daemon_no_aufs.go update go import path and libcontainer 2014-07-24 22:19:50 +00:00
daemon_overlay.go Remove the last references to overlayfs 2014-12-03 14:06:19 +01:00
daemon_test.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
daemon_unit_test.go Move security opts to HostConfig 2014-11-25 01:02:30 +02:00
delete.go container: Do not remove contianer if any of the resource failed cleanup 2015-03-31 09:51:19 -04:00
exec.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
export.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
history.go History.Swap Use parallel assignment to swap elements, as it's 2015-03-25 00:13:13 +03:00
image_delete.go Fix error from daemon no such image even when the image exist 2015-03-28 09:07:20 +08:00
info.go Merge pull request #11788 from reikani/pchoi 2015-03-26 23:55:50 -07:00
inspect.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
kill.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
list.go Changed snake case naming to camelCase 2015-03-26 15:05:45 -06:00
logs.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
monitor.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
network_settings.go Adding IPv6 network support to docker 2015-01-09 00:13:09 +01:00
pause.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
rename.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
resize.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
restart.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
start.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
state.go container: Do not remove contianer if any of the resource failed cleanup 2015-03-31 09:51:19 -04:00
state_test.go Fix vet errors about unkeyed fields 2014-12-12 10:44:59 -08:00
stats.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
stats_collector.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
stop.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
top.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00
utils.go User should get error message on wrong config 2014-12-09 21:52:07 +00:00
utils_linux.go --selinux-enabled flag should be ignored on Disabled SELinux systems 2014-09-23 13:21:25 -04:00
utils_nolinux.go --selinux-enabled flag should be ignored on Disabled SELinux systems 2014-09-23 13:21:25 -04:00
utils_test.go Update container resolv.conf when host network changes /etc/resolv.conf 2015-01-08 14:15:13 -05:00
volumes.go Replace aliased imports of logrus, fixes #11762 2015-03-26 23:22:04 +01:00
wait.go Remove engine.Status and replace it with standard go error 2015-03-25 22:32:08 +01:00

README.md

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver