Skip to content

Commit

Permalink
Merge pull request #461 from EndPositive/feature/shm-size
Browse files Browse the repository at this point in the history
Add SHM size to the container request
  • Loading branch information
mdelapenya authored Jun 16, 2022
2 parents d01c78a + 4f15dd0 commit fa714e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ type ContainerRequest struct {
AlwaysPullImage bool // Always pull image
ImagePlatform string // ImagePlatform describes the platform which the image runs on.
Binds []string
ShmSize int64 // Amount of memory shared with the host (in bytes)
}

type (
Expand Down
1 change: 1 addition & 0 deletions docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ func (p *DockerProvider) CreateContainer(ctx context.Context, req ContainerReque
Privileged: req.Privileged,
NetworkMode: req.NetworkMode,
Resources: req.Resources,
ShmSize: req.ShmSize,
}

endpointConfigs := map[string]*network.EndpointSettings{}
Expand Down

0 comments on commit fa714e3

Please sign in to comment.