Skip to content

Commit 0556a35

Browse files
authored
Remove fields that are invalid in the compose v3 spec
1 parent 9f3960d commit 0556a35

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

autocompose.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,13 @@ def generate(cname):
6666
'volumes': cattrs['HostConfig']['Binds'],
6767
'volume_driver': cattrs['HostConfig']['VolumeDriver'],
6868
'volumes_from': cattrs['HostConfig']['VolumesFrom'],
69-
'cpu_shares': cattrs['HostConfig']['CpuShares'],
70-
'cpuset': cattrs['HostConfig']['CpusetCpus']+','+cattrs['HostConfig']['CpusetMems'],
7169
'entrypoint': cattrs['Config']['Entrypoint'],
7270
'user': cattrs['Config']['User'],
7371
'working_dir': cattrs['Config']['WorkingDir'],
7472
'domainname': cattrs['Config']['Domainname'],
7573
'hostname': cattrs['Config']['Hostname'],
7674
'ipc': cattrs['HostConfig']['IpcMode'],
7775
'mac_address': cattrs['NetworkSettings']['MacAddress'],
78-
'mem_limit': cattrs['HostConfig']['Memory'],
79-
'memswap_limit': cattrs['HostConfig']['MemorySwap'],
8076
'privileged': cattrs['HostConfig']['Privileged'],
8177
'restart': cattrs['HostConfig']['RestartPolicy']['Name'],
8278
'read_only': cattrs['HostConfig']['ReadonlyRootfs'],

0 commit comments

Comments
 (0)