Skip to content

Unable to load DLL 'gdiplus.dll' when using Windows based docker images #1098

@tburnett80

Description

@tburnett80

Steps to reproduce the issue

  1. Try to use System.Drawing.Common with microsoft/dotnet:2.2-aspnetcore-runtime-nanoserver-sac2016

Expected behavior

dll loaded and System.DllNotFoundException not thrown when using System.Drawing.Common

Actual behavior

System.DllNotFoundException thown: "Unable to load DLL 'gdiplus.dll': The specified module could not be found."

Additional information (e.g. issue happens only occasionally)

System.Drawing.Common unusable with dotnet core 2.1 / 2.2 runtime images.

Output of docker version

Client: Docker Engine - Enterprise
 Version:           18.09.4
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        c3516c43ef
 Built:             03/27/2019 18:22:15
 OS/Arch:           windows/amd64
 Experimental:      false

Server: Docker Engine - Enterprise
 Engine:
  Version:          18.09.4
  API version:      1.39 (minimum version 1.24)
  Go version:       go1.10.8
  Git commit:       c3516c43ef
  Built:            03/27/2019 18:20:29
  OS/Arch:          windows/amd64
  Experimental:     false

Output of docker info

Containers: 3
 Running: 3
 Paused: 0
 Stopped: 0
Images: 20
Server Version: 18.09.4
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: ics l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.2906.amd64fre.rs1_release_inmarket.190401-1809)
Operating System: Windows Server 2016 Standard Version 1607 (OS Build 14393.2906)
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 16GiB
Docker Root Dir: D:\Docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions