Merge pull request #16567 from calavera/context_per_request

Define a context per request.
This commit is contained in:
Jess Frazelle
2015-09-25 13:01:51 -07:00
17 changed files with 82 additions and 94 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func (daemon *Daemon) ContainerCreate(ctx context.Context, name string, config *
container, buildWarnings, err := daemon.Create(ctx, config, hostConfig, name)
if err != nil {
if daemon.Graph(ctx).IsNotExist(err, config.Image) {
if daemon.Graph().IsNotExist(err, config.Image) {
if strings.Contains(config.Image, "@") {
return types.ContainerCreateResponse{"", warnings}, derr.ErrorCodeNoSuchImageHash.WithArgs(config.Image)
}