mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-04 15:58:39 +00:00
Merge pull request #16567 from calavera/context_per_request
Define a context per request.
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user