@@ -0,0 +1,25 @@
1+diff --git a/cmd/skopeo/main.go b/cmd/skopeo/main.go
2+index 51f918d..6681d73 100644
3+--- a/cmd/skopeo/main.go
4++++ b/cmd/skopeo/main.go
5+@@ -3,6 +3,7 @@ package main
6+ import (
7+ "fmt"
8+ "os"
9++ "path/filepath"
10+
11+ "github.com/Sirupsen/logrus"
12+ "github.com/containers/image/signature"
13+@@ -84,6 +85,12 @@ func getPolicyContext(c *cli.Context) (*signature.PolicyContext, error) {
14+ policyPath := c.GlobalString("policy")
15+ var policy *signature.Policy // This could be cached across calls, if we had an application context.
16+ var err error
17++ var dir string
18++ if policyPath == "" {
19++ dir, err = filepath.Abs(filepath.Dir(os.Args[0]))
20++ policyPath = dir + "/../etc/default-policy.json"
21++ }
22++
23+ if policyPath == "" {
24+ policy, err = signature.DefaultPolicy(nil)
25+ } else {