Default CPU share

Hi all,

When I run a container say Ubuntu or HTTPD without configuring --cpu-shares, I thought the default CPU share is set to 1024. However, when I inspect a container with.

docker container inspect container-name | grep -i cpu

The cpushares is actually 0

It’s not until I update with

docker update --cpu-shares 5210 container-name

I can see that cpushare is updated with 5210. I thought it is set 1024 by default?