Skip to content

Commit

Permalink
Update CRI socket path to /var/run/cri.sock
Browse files Browse the repository at this point in the history
  • Loading branch information
drakedevel committed Nov 16, 2019
1 parent 31268c3 commit f5daa9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/cri/cri.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import (
log "github.com/cihub/seelog"
)

const (
// TODO: Parameterize?
criSocketPath = "unix:///var/run/cri.sock"
)

// ContainerInfo provides container information
type ContainerInfo struct {
ID string
Expand All @@ -28,8 +33,7 @@ func New() *Client {
}

func (c *Client) GetRunningContainers() (map[string]*ContainerInfo, error) {
// TODO: Parameterize socket path
conn, err := grpc.Dial("unix:///var/run/dockershim.sock", grpc.WithInsecure())
conn, err := grpc.Dial(criSocketPath, grpc.WithInsecure())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f5daa9e

Please sign in to comment.