moby/docs/sources
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
..
article-img Merge pull request #10831 from MalteJ/ipv6-ndp-proxy 2015-02-26 07:19:36 -08:00
articles Add information on resolv.conf localhost filtering to networking.md 2015-03-09 13:41:00 -04:00
docker-hub docs: optimize and consolidate images, remove duplicates 2015-02-23 12:10:54 +01:00
docker-hub-enterprise DHE documentation placeholder and Navbar changes 2015-01-29 20:50:43 +10:00
examples Smallest typo correction ever 2015-02-14 17:51:28 +01:00
include Add a note that remote and Boot2Docker users should not type sudo 2015-01-13 21:40:14 -05:00
installation Remove subdirectories MAINTAINERS files 2015-03-06 18:21:51 -08:00
introduction Notes should be indented 2015-03-03 13:58:35 -08:00
project Cleanup: new project docs fix-ups (alternative) 2015-03-07 23:40:34 +01:00
reference move resources from Config to HostConfig 2015-03-11 09:31:18 +08:00
static_files Smaller image 2015-02-26 08:48:58 -08:00
terms add Scott's link checker script, and fix what it finds 2014-12-16 14:46:25 +10:00
userguide Merge pull request #11204 from duglin/VolumeDocs 2015-03-06 10:44:03 -08:00
examples.md Adding User Guide 2014-06-01 17:34:07 -04:00
faq.md Fix erroneously wrapped URLs in links 2015-02-20 23:05:52 +00:00
genindex.md now, with shiney markdown 2014-04-16 11:04:14 +10:00
http-routingtable.md add Scott's link checker script, and fix what it finds 2014-12-16 14:46:25 +10:00
index.md I was talking to someone whom i listen to, and she noted that our docs don't mention the license 2014-12-05 21:06:11 +10:00
installation.md Cover openSUSE and SUSE Linux Enterprise on the same page 2014-12-01 01:23:38 +01:00
jsearch.md Remove version selector and edit on Github on search page, as it only searches the latest docs 2014-10-14 11:54:41 +10:00
project.md Rewrite the Contributing tree as Project in preparation for the Docker birthday. 2015-03-06 14:10:55 -08:00
reference.md Docs auto-conversion fixes and MD marking and structure improvements. 2014-04-24 22:19:32 +10:00
release-notes.md Add an initial list of new features in Docker Engine 1.5.0 2015-02-05 10:37:15 +10:00
search.md now, with shiney markdown 2014-04-16 11:04:14 +10:00
terms.md Docs auto-conversion fixes and MD marking and structure improvements. 2014-04-24 22:19:32 +10:00
toctree.md Docs auto-conversion fixes and MD marking and structure improvements. 2014-04-24 22:19:32 +10:00