Merge pull request #97 from mrunalp/ctr_dir_id
Use container ID as the directory name
This commit is contained in:
commit
a5da8a4d1e
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ func (s *Server) CreateContainer(ctx context.Context, req *pb.CreateContainerReq
|
|||
}
|
||||
|
||||
// containerDir is the dir for the container bundle.
|
||||
containerDir := filepath.Join(s.runtime.ContainerDir(), name)
|
||||
containerDir := filepath.Join(s.runtime.ContainerDir(), containerID)
|
||||
|
||||
if _, err = os.Stat(containerDir); err == nil {
|
||||
return nil, fmt.Errorf("container (%s) already exists", containerDir)
|
||||
|
|
Loading…
Reference in a new issue