Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
can not set container MemorySwappiness=0
if i create container with parment MemorySwappiness=0, the "omitempty" will ignore this parament.,and the docker daemon will use -1 as the memoryswappiness value. In the docker code,i find: ·if hostConfig.MemorySwappiness == nil { defaultSwappiness := int64(-1) hostConfig.MemorySwappiness = &defaultSwappiness }· so i think we should remove the omitempty parment.
- Loading branch information