1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon
Qiang Huang 837eec064d move resources from Config to HostConfig
Cgroup resources are host dependent, they should be in hostConfig.

For backward compatibility, we just copy it to hostConfig, and leave it in
Config for now, so there is no regressions, but the right way to use this
throught json is to put it in HostConfig, like:
  {
      "Hostname": "",
      ...
      "HostConfig": {
	  "CpuShares": 512,
          "Memory": 314572800,
          ...
      }
  }

As we will add CpusetMems, CpusetCpus is definitely a better name, but some
users are already using Cpuset in their http APIs, we also make it compatible.

The main idea is keep using Cpuset in Config Struct, and make it has the same
value as CpusetCpus, but not always, some scenarios:
 - Users use --cpuset in docker command, it can setup cpuset.cpus and can
   get Cpuset field from docker inspect or other http API which will get
   config info.
 - Users use --cpuset-cpus in docker command, ditto.
 - Users use Cpuset field in their http APIs, ditto.
 - Users use CpusetCpus field in their http APIs, they won't get Cpuset field
   in Config info, because by then, they should already know what happens
   to Cpuset.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-03-11 09:31:18 +08:00
..
execdriver move resources from Config to HostConfig 2015-03-11 09:31:18 +08:00
graphdriver Remove subdirectories MAINTAINERS files 2015-03-06 18:21:51 -08:00
networkdriver Seems like an un-necessary if statement 2015-03-04 13:24:17 -08:00
attach.go Merge pull request #10573 from LK4D4/return_attach_to_builder 2015-02-06 14:37:09 -08:00
changes.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
commit.go Merge pull request #9123 from rhatdan/commit-change 2015-02-24 17:09:10 -05:00
config.go Merge pull request #10586 from resouer/10532-fix-cors-hardcode 2015-03-04 18:42:20 +00:00
container.go move resources from Config to HostConfig 2015-03-11 09:31:18 +08:00
container_unit_test.go Ensure container names start with a-zA-Z0-9 2014-09-12 10:45:07 -07:00
copy.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
create.go move resources from Config to HostConfig 2015-03-11 09:31:18 +08:00
daemon.go Ensure clean engine shutdown on startup errors 2015-03-09 08:40:38 -04:00
daemon_aufs.go Mass gofmt 2014-10-24 15:11:48 -07:00
daemon_btrfs.go
daemon_devicemapper.go
daemon_no_aufs.go
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 Rename Destroy to Rm to be consistent with CLI. 2015-02-23 16:15:56 +01:00
exec.go fix a minor typo in daemon/exec.go 2015-02-26 19:11:27 +08:00
export.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
history.go
image_delete.go Better error message for "docker rmi ''" 2015-03-04 13:21:59 -08:00
info.go docker info display http/https_proxy setting 2015-03-06 09:02:21 +08:00
inspect.go add logpath to docker inspect. 2015-02-18 10:19:52 -05:00
kill.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
list.go Use graphdb.Walk with depth=1 in /containers 2015-02-06 14:04:21 -08:00
logs.go Merge pull request #10424 from LK4D4/fix_non_tailed_log_format 2015-02-06 14:35:45 -08:00
monitor.go Removing dependencies from pkg into Docker internal code 2015-02-23 18:43:10 +00:00
network_settings.go Adding IPv6 network support to docker 2015-01-09 00:13:09 +01:00
pause.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
README.md
rename.go Prefix / to the container name is ignored when container is renamed 2015-02-27 22:40:04 +00:00
resize.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
restart.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
start.go Allow setting ulimits for containers 2015-02-25 19:37:43 -05:00
state.go Address comments. 2014-11-08 00:14:08 +00:00
state_test.go Fix vet errors about unkeyed fields 2014-12-12 10:44:59 -08:00
stats.go Execdriver implementation on new libcontainer API 2015-03-06 14:46:58 -08:00
stats_collector.go Exit cli when all containers when no more containers to monitor 2015-01-21 08:55:23 -08:00
stop.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00
top.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08: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 Two SELinux Changes. 2015-03-05 13:55:44 -05:00
wait.go Closes #9311 Handles container id/name collisions against daemon functionalities according to #8069 2015-01-21 17:11:31 -08:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver