Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 78932ca

Browse files
authored
Merge pull request #306 from joshwget/shm-size
Add shm_size
2 parents a2526b0 + 8bc309e commit 78932ca

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

config/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type ServiceConfigV1 struct {
5353
Privileged bool `yaml:"privileged,omitempty"`
5454
Restart string `yaml:"restart,omitempty"`
5555
ReadOnly bool `yaml:"read_only,omitempty"`
56+
ShmSize int64 `yaml:"shm_size,omitempty"`
5657
StdinOpen bool `yaml:"stdin_open,omitempty"`
5758
SecurityOpt []string `yaml:"security_opt,omitempty"`
5859
Tty bool `yaml:"tty,omitempty"`
@@ -112,6 +113,7 @@ type ServiceConfig struct {
112113
Ports []string `yaml:"ports,omitempty"`
113114
Privileged bool `yaml:"privileged,omitempty"`
114115
SecurityOpt []string `yaml:"security_opt,omitempty"`
116+
ShmSize int64 `yaml:"shm_size,omitempty"`
115117
StopSignal string `yaml:"stop_signal,omitempty"`
116118
VolumeDriver string `yaml:"volume_driver,omitempty"`
117119
Volumes []string `yaml:"volumes,omitempty"`

docker/convert.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ func Convert(c *config.ServiceConfig, ctx project.Context) (*container.Config, *
197197
IpcMode: container.IpcMode(c.Ipc),
198198
PortBindings: portBindings,
199199
RestartPolicy: *restartPolicy,
200+
ShmSize: c.ShmSize,
200201
SecurityOpt: utils.CopySlice(c.SecurityOpt),
201202
VolumeDriver: c.VolumeDriver,
202203
Resources: resources,

0 commit comments

Comments
 (0)