Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

1,588,094

Downloads of v 4.40.0:

18,995

Last Update:

31 Mar 2025

Package Maintainer(s):

Software Author(s):

  • Docker Inc.

Tags:

docker-for-windows docker-desktop docker admin

Docker Desktop

  • 1
  • 2
  • 3

4.40.0 | Updated: 31 Mar 2025

Downloads:

1,588,094

Downloads of v 4.40.0:

18,995

Maintainer(s):

Software Author(s):

  • Docker Inc.

Docker Desktop 4.40.0

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Docker Inc. The inclusion of Docker Inc. trademark(s), if any, upon this webpage is solely to identify Docker Inc. goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Dependencies require reboot.

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Docker Desktop, run the following command from the command line or from PowerShell:

>

To upgrade Docker Desktop, run the following command from the command line or from PowerShell:

>

To uninstall Docker Desktop, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade docker-desktop -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade docker-desktop -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install docker-desktop
  win_chocolatey:
    name: docker-desktop
    version: '4.40.0'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'docker-desktop' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '4.40.0'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller docker-desktop
{
    Name     = "docker-desktop"
    Version  = "4.40.0"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'docker-desktop':
  ensure   => '4.40.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

Package Approved

This package was approved as a trusted package on 31 Mar 2025.

Description

Developer productivity tools and a local Kubernetes environment.


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';

$packageName = 'docker-desktop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url64 = 'https://desktop.docker.com/win/main/amd64/187762/Docker%20Desktop%20Installer.exe'
$checksum64 = 'd1798346b572fb29f538f40019ba43abf2b3e9d62ff7c00cb5decb2a1f340018'

$packageArgs = @{
  packageName    = $packageName
  unzipLocation  = $toolsDir
  fileType       = 'EXE'
  url64bit       = $url64

  softwareName   = 'docker*'

  checksum64     = $checksum64
  checksumType64 = 'sha256'

  silentArgs     = "install --quiet"
  validExitCodes = @(0, 3010, 1641, 3) # 3 = InstallationUpToDate 
}

Install-ChocolateyPackage @packageArgs
tools\chocolateyuninstall.ps1


$ErrorActionPreference = 'Stop';

$packageName = 'docker-desktop'
$softwareName = 'docker*'
$installerType = 'EXE' 

$silentArgs = 'uninstall --quiet'
$validExitCodes = @(0, 3010, 1605, 1614, 1641)
if ($installerType -ne 'MSI') {
  $validExitCodes = @(0)
}

$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName

if ($key.Count -eq 1) {
  $key | % { 
    $file = "$($_.UninstallString)"

    if ($installerType -eq 'MSI') {
      $silentArgs = "$($_.PSChildName) $silentArgs"

      $file = ''
    }

    # remove parameter
    $file = $file -replace ' "uninstall"$', '';
    write-output "uninstalling from $file"
    Uninstall-ChocolateyPackage -PackageName $packageName `
                                -FileType $installerType `
                                -SilentArgs "$silentArgs" `
                                -ValidExitCodes $validExitCodes `
                                -File "$file"
  }
} elseif ($key.Count -eq 0) {
  Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
  Write-Warning "$key.Count matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | % {Write-Warning "- $_.DisplayName"}
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Docker Desktop 4.39.0 20587 Wednesday, March 12, 2025 Approved
Docker Desktop 4.38.0 26079 Tuesday, February 11, 2025 Approved
Docker Desktop 4.37.1 22480 Sunday, January 12, 2025 Approved
Docker Desktop 4.36.0 28793 Thursday, November 21, 2024 Approved
Docker Desktop 4.34.2 42513 Tuesday, September 17, 2024 Approved
Docker Desktop 4.33.1 23370 Tuesday, August 13, 2024 Approved
Docker Desktop 4.32.0 22081 Wednesday, July 10, 2024 Approved
Docker Desktop 4.30.0 38108 Monday, May 6, 2024 Approved
Docker Desktop 4.29.0 22325 Monday, April 8, 2024 Approved
Docker Desktop 4.28.0 29490 Monday, February 26, 2024 Approved
Docker Desktop 4.27.2 20534 Thursday, February 8, 2024 Approved
Docker Desktop 4.27.1 9767 Thursday, February 1, 2024 Approved
Docker Desktop 4.27.0 9859 Thursday, January 25, 2024 Approved
Docker Desktop 4.26.1 29817 Friday, December 15, 2023 Approved
Docker Desktop 4.26.0 13009 Monday, December 4, 2023 Approved
Docker Desktop 4.25.2 14774 Tuesday, November 21, 2023 Approved
Docker Desktop 4.25.1 10415 Monday, November 13, 2023 Approved
Docker Desktop 4.25.0 18672 Thursday, October 26, 2023 Approved
Docker Desktop 4.24.2 13247 Thursday, October 12, 2023 Approved
Docker Desktop 4.24.1 10717 Thursday, October 5, 2023 Approved
Docker Desktop 4.24.0 8007 Thursday, September 28, 2023 Approved
Docker Desktop 4.23.0 15342 Monday, September 11, 2023 Approved
Docker Desktop 4.22.1 14502 Thursday, August 24, 2023 Approved
Docker Desktop 4.22.0 15912 Thursday, August 3, 2023 Approved
Docker Desktop 4.21.1 20217 Tuesday, July 4, 2023 Approved
Docker Desktop 4.21.0 5165 Thursday, June 29, 2023 Approved
Docker Desktop 4.20.1 10691 Monday, June 19, 2023 Approved
Docker Desktop 4.19.0 29285 Thursday, April 27, 2023 Approved
Docker Desktop 4.18.0 17078 Thursday, April 6, 2023 Approved
Docker Desktop 4.17.1 16472 Monday, March 20, 2023 Approved
Docker Desktop 4.17.0 17038 Monday, February 27, 2023 Approved
Docker Desktop 4.16.3 19893 Monday, January 30, 2023 Approved
Docker Desktop 4.16.2 9500 Friday, January 20, 2023 Approved
Docker Desktop 4.16.1 8215 Friday, January 13, 2023 Approved
Docker Desktop 4.16.0 2557 Thursday, January 12, 2023 Approved
Docker Desktop 4.15.0 25618 Thursday, December 1, 2022 Approved
Docker Desktop 4.14.1 12254 Thursday, November 17, 2022 Approved
Docker Desktop 4.14.0 8132 Thursday, November 10, 2022 Approved
Docker Desktop 4.13.1 10486 Monday, October 31, 2022 Approved
Docker Desktop 4.13.0 9171 Wednesday, October 19, 2022 Approved
Docker Desktop 4.12.0 26323 Friday, September 2, 2022 Approved
Docker Desktop 4.11.1 18906 Saturday, August 6, 2022 Approved
Docker Desktop 4.11.0 8078 Thursday, July 28, 2022 Approved
Docker Desktop 4.10.1 15739 Tuesday, July 5, 2022 Approved
Docker Desktop 4.10.0 5533 Friday, July 1, 2022 Approved
Docker Desktop 4.9.1 11327 Thursday, June 16, 2022 Approved
Docker Desktop 4.9.0 11409 Thursday, June 2, 2022 Approved
Docker Desktop 4.8.2 11707 Wednesday, May 18, 2022 Approved
Docker Desktop 4.8.1 9160 Monday, May 9, 2022 Approved
Docker Desktop 4.7.1 14778 Tuesday, April 19, 2022 Approved
Docker Desktop 4.7.0 16169 Thursday, April 7, 2022 Approved
Docker Desktop 4.6.1 14299 Tuesday, March 22, 2022 Approved
Docker Desktop 4.6.0 8651 Tuesday, March 15, 2022 Approved
Docker Desktop 4.5.1 19254 Tuesday, February 15, 2022 Approved
Docker Desktop 4.5.0 4681 Friday, February 11, 2022 Approved
Docker Desktop 4.4.4 15843 Monday, January 24, 2022 Approved
Docker Desktop 4.4.3 9742 Friday, January 14, 2022 Approved
Docker Desktop 4.4.2 2482 Thursday, January 13, 2022 Approved
Docker Desktop 4.3.2 15587 Wednesday, December 22, 2021 Approved
Docker Desktop 4.3.1 9348 Sunday, December 12, 2021 Approved
Docker Desktop 4.3.0 8415 Thursday, December 2, 2021 Approved
Docker Desktop 4.2.0 17414 Tuesday, November 9, 2021 Approved
Docker Desktop 4.1.1 19420 Tuesday, October 12, 2021 Approved
Docker Desktop 4.1.0 10998 Thursday, September 30, 2021 Approved
Docker Desktop 4.0.1 13921 Monday, September 13, 2021 Exempted
Docker Desktop 4.0.0 11734 Wednesday, September 1, 2021 Approved
Docker Desktop 3.6.0.20210906 410 Monday, September 6, 2021 Exempted
Docker Desktop 3.6.0 15507 Wednesday, August 11, 2021 Exempted
Docker Desktop 3.6.0-edge 247 Wednesday, August 11, 2021 Exempted
Docker Desktop 3.5.2.20210906 246 Monday, September 6, 2021 Exempted
Docker Desktop 3.5.2 20896 Thursday, July 8, 2021 Approved
Docker Desktop 3.5.2-edge 254 Thursday, July 8, 2021 Approved
Docker Desktop 3.5.1.20210906 164 Monday, September 6, 2021 Exempted
Docker Desktop 3.5.1 10731 Friday, June 25, 2021 Approved
Docker Desktop 3.5.1-edge 152 Friday, June 25, 2021 Approved
Docker Desktop 3.5.0.20210906 135 Monday, September 6, 2021 Exempted
Docker Desktop 3.5.0 3720 Wednesday, June 23, 2021 Approved
Docker Desktop 3.5.0-edge 183 Wednesday, June 23, 2021 Approved
Docker Desktop 3.4.0.20210906 187 Monday, September 6, 2021 Exempted
Docker Desktop 3.4.0 11082 Wednesday, June 9, 2021 Approved
Docker Desktop 3.4.0-edge 179 Wednesday, June 9, 2021 Approved
Docker Desktop 3.3.3.20210906 152 Monday, September 6, 2021 Exempted
Docker Desktop 3.3.3 37725 Thursday, May 6, 2021 Approved
Docker Desktop 3.3.3-edge 192 Thursday, May 6, 2021 Approved
Docker Desktop 3.3.2 4504 Monday, May 3, 2021 Approved
Docker Desktop 3.3.2-edge 154 Monday, May 3, 2021 Approved
Docker Desktop 3.3.1 11717 Friday, April 16, 2021 Approved
Docker Desktop 3.3.1-edge 182 Friday, April 16, 2021 Approved
Docker Desktop 3.3.0 7488 Friday, April 9, 2021 Approved
Docker Desktop 3.2.2.20210906 148 Monday, September 6, 2021 Exempted
Docker Desktop 3.2.2 15212 Monday, March 15, 2021 Approved
Docker Desktop 3.2.2-edge 163 Monday, March 15, 2021 Approved
Docker Desktop 3.2.1 14865 Friday, March 5, 2021 Approved
Docker Desktop 3.2.1-edge 314 Friday, March 5, 2021 Approved
Docker Desktop 3.2.0 4792 Tuesday, March 2, 2021 Approved
Docker Desktop 3.2.0-edge 181 Tuesday, March 2, 2021 Approved
Docker Desktop 3.1.0 31278 Monday, January 18, 2021 Approved
Docker Desktop 3.1.0-edge 193 Monday, January 18, 2021 Approved
Docker Desktop 3.0.4 11462 Thursday, January 7, 2021 Approved
Docker Desktop 3.0.4-edge 194 Thursday, January 7, 2021 Approved
Docker Desktop 3.0.0 16614 Thursday, December 17, 2020 Approved
Docker Desktop 3.0.0-edge 238 Thursday, December 17, 2020 Approved
Docker Desktop 2.5.1.0-edge 1474 Wednesday, November 18, 2020 Exempted
Docker Desktop 2.5.0.20210906 180 Monday, September 6, 2021 Exempted
Docker Desktop 2.5.0.1 25414 Tuesday, November 17, 2020 Approved
Docker Desktop 2.4.2.0-edge 1402 Monday, October 19, 2020 Approved
Docker Desktop 2.4.1.0-edge 768 Thursday, October 1, 2020 Approved
Docker Desktop 2.4.0.0 26898 Wednesday, September 30, 2020 Approved
Docker Desktop 2.3.7.0-edge 672 Friday, September 18, 2020 Approved
Docker Desktop 2.3.6.2-edge 488 Thursday, September 10, 2020 Approved
Docker Desktop 2.3.6.1-edge 271 Tuesday, September 8, 2020 Approved
Docker Desktop 2.3.6.0-edge 490 Tuesday, September 1, 2020 Approved
Docker Desktop 2.3.5.1-edge 496 Tuesday, August 25, 2020 Approved
Docker Desktop 2.3.5.0-edge 417 Friday, August 21, 2020 Approved
Docker Desktop 2.3.4.0-edge 861 Wednesday, July 29, 2020 Approved
Docker Desktop 2.3.3.2-edge 429 Wednesday, July 22, 2020 Approved
Docker Desktop 2.3.3.1-edge 463 Saturday, July 11, 2020 Approved
Docker Desktop 2.3.3.0-edge 207 Friday, July 10, 2020 Approved
Docker Desktop 2.3.2.1-edge 494 Tuesday, June 30, 2020 Approved
Docker Desktop 2.3.2.0-edge 371 Saturday, June 27, 2020 Approved
Docker Desktop 2.3.1.0-edge 1418 Wednesday, May 20, 2020 Approved
Docker Desktop 2.3.0.5 9800 Tuesday, September 15, 2020 Approved
Docker Desktop 2.3.0.4 19490 Monday, July 27, 2020 Approved
Docker Desktop 2.3.0.3 21782 Wednesday, May 27, 2020 Approved
Docker Desktop 2.3.0.2 9744 Monday, May 11, 2020 Approved
Docker Desktop 2.3.0.1-edge 569 Tuesday, April 28, 2020 Approved
Docker Desktop 2.3.0.0-edge 465 Monday, April 20, 2020 Approved
Docker Desktop 2.2.3.0-edge 633 Thursday, April 2, 2020 Approved
Docker Desktop 2.2.2.0-edge 846 Monday, March 2, 2020 Approved
Docker Desktop 2.2.1.0-edge 260 Wednesday, February 12, 2020 Approved
Docker Desktop 2.2.0.5 16473 Thursday, April 2, 2020 Approved
Docker Desktop 2.2.0.4 10102 Friday, March 13, 2020 Approved
Docker Desktop 2.2.0.3 14916 Tuesday, February 11, 2020 Approved
Docker Desktop 2.1.7.0-edge 1032 Wednesday, December 11, 2019 Approved
Docker Desktop 2.1.6.1-edge 688 Thursday, November 21, 2019 Approved
Docker Desktop 2.1.6.0-edge 410 Monday, November 18, 2019 Approved
Docker Desktop 2.1.5.0-edge 549 Monday, November 4, 2019 Approved
Docker Desktop 2.1.4.0-edge 590 Tuesday, October 15, 2019 Approved
Docker Desktop 2.1.3.0-edge 774 Monday, September 16, 2019 Approved
Docker Desktop 2.1.2.0-edge 461 Monday, September 9, 2019 Approved
Docker Desktop 2.1.1.0-edge 965 Monday, August 12, 2019 Approved
Docker Desktop 2.1.0.5 22768 Monday, November 18, 2019 Approved
Docker Desktop 2.1.0.4 11330 Monday, October 21, 2019 Approved
Docker Desktop 2.1.0.3 14532 Monday, September 16, 2019 Approved
Docker Desktop 2.1.0.2 6186 Wednesday, September 4, 2019 Approved
Docker Desktop 2.1.0.1 11932 Thursday, August 8, 2019 Approved
Docker Desktop 2.1.0.0 4363 Wednesday, July 31, 2019 Approved
Docker Desktop 2.1.0.0-edge 365 Tuesday, July 30, 2019 Approved
Docker Desktop 2.0.5.0-edge 994 Wednesday, June 12, 2019 Approved
Docker Desktop 2.0.4.1-edge 813 Thursday, May 9, 2019 Approved
Docker Desktop 2.0.4.0-edge 453 Tuesday, April 30, 2019 Approved
Docker Desktop 2.0.3.0-edge 1152 Tuesday, March 5, 2019 Approved
Docker Desktop 2.0.2.1-edge 496 Thursday, February 14, 2019 Exempted
Docker Desktop 2.0.2.0-edge 409 Wednesday, February 6, 2019 Exempted
Docker Desktop 2.0.1.0-edge 566 Monday, January 14, 2019 Exempted
Docker Desktop 2.0.0.3 35449 Thursday, February 14, 2019 Approved
Docker Desktop 2.0.0.2 8693 Tuesday, January 15, 2019 Approved
Docker Desktop 2.0.0.0 9412 Wednesday, November 21, 2018 Approved

Discussion for the Docker Desktop Package

Ground Rules:

  • This discussion is only about Docker Desktop and the Docker Desktop package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Docker Desktop, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus