Merge pull request #717 from 14rcole/oci-getcontainer

Allow oci memory store to match containers by id prefix or by name
This commit is contained in:
Antonio Murdaca 2017-08-02 16:55:36 +02:00 committed by GitHub
commit da176cd379
7 changed files with 81 additions and 29 deletions

View file

@ -12,7 +12,7 @@ import (
// StopContainer stops a running container with a grace period (i.e., timeout).
func (s *Server) StopContainer(ctx context.Context, req *pb.StopContainerRequest) (*pb.StopContainerResponse, error) {
logrus.Debugf("StopContainerRequest %+v", req)
c, err := s.getContainerFromRequest(req.ContainerId)
c, err := s.GetContainerFromRequest(req.ContainerId)
if err != nil {
return nil, err
}