How does docker use CPU cores from its host operating system?

Currently, I don’t think docker provides this level of granularity. It doesn’t specify how many cores it allocates in its lxc.conf files, so you will get all cores for each docker, potentially (or possibly 1, I’m not 100% sure on that).

However, you could tweak the conf file generated for a given container and set something like

cpuset {
    cpuset.cpus="0-3";
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)