Skip to content

Commit

Permalink
fix: remove ulimit when re-creating container
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantony committed Oct 17, 2023
1 parent 37e71a3 commit ffa7955
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/adapter/container_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (adapter *KubeDockerAdapter) buildContainerConfigurationFromExistingContain
return converter.ContainerConfiguration{}, fmt.Errorf("unable to inspect container: %w", err)
}

return converter.ContainerConfiguration{
containerConfiguration := converter.ContainerConfiguration{
ContainerName: containerDetails.Name,
ContainerConfig: &container.Config{
Image: containerDetails.Image,
Expand All @@ -150,7 +150,11 @@ func (adapter *KubeDockerAdapter) buildContainerConfigurationFromExistingContain
NetworkConfig: &network.NetworkingConfig{
EndpointsConfig: containerDetails.NetworkSettings.Networks,
},
}, nil
}

containerConfiguration.HostConfig.Resources.Ulimits = nil

return containerConfiguration, nil
}

// ContainerCreationOptions serves as a parameter object for container creation operations.
Expand Down

0 comments on commit ffa7955

Please sign in to comment.