Downloads:
86,225
Downloads of v 26.0.1:
518
Last Update:
19 Apr 2024
Package Maintainer(s):
Software Author(s):
- Docker Contributors
Tags:
docker devops containersDocker Engine
This is not the latest version of Docker Engine available.
- 1
- 2
- 3
26.0.1 | Updated: 19 Apr 2024
Downloads:
86,225
Downloads of v 26.0.1:
518
Maintainer(s):
Software Author(s):
- Docker Contributors
Docker Engine 26.0.1
This is not the latest version of Docker Engine available.
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Docker Contributors. The inclusion of Docker Contributors trademark(s), if any, upon this webpage is solely to identify Docker Contributors goods or services and not for commercial purposes.
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
Deployment Method: Individual Install, Upgrade, & Uninstall
To install Docker Engine, run the following command from the command line or from PowerShell:
To upgrade Docker Engine, run the following command from the command line or from PowerShell:
To uninstall Docker Engine, run the following command from the command line or from PowerShell:
Deployment Method:
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
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
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
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download docker-engine --internalize --version=26.0.1 --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade docker-engine -y --source="'INTERNAL REPO URL'" --version="'26.0.1'" [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-engine -y --source="'INTERNAL REPO URL'" --version="'26.0.1'"
$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-engine
win_chocolatey:
name: docker-engine
version: '26.0.1'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'docker-engine' do
action :install
source 'INTERNAL REPO URL'
version '26.0.1'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller docker-engine
{
Name = "docker-engine"
Version = "26.0.1"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'docker-engine':
ensure => '26.0.1',
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.
This package was approved as a trusted package on 19 Apr 2024.
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications. This package contains the docker engine for Windows to run Windows containers on Windows hosts.
NOTE: Docker engine for Windows is is simply the service to run containers. You might want to have a look at the "docker-desktop" package for better usability.
From v23 docker engine is installed into $env:ProgramFiles\docker
(the default docker location). A shim is still generated for the docker cli.
Package Specific
This package by default creates the group docker-users
and adds the installing user to it, you can customise this with package parameters. In order to communicate with docker you will need to log out and back in.
Please Note: The docker engine requires the Windows Features: Containers and Microsoft-Hyper-V to be installed in order to function correctly. You can install these with the chocolatey command:
choco install Containers Microsoft-Hyper-V --source windowsfeatures
Package Parameters
The following package parameters can be set:
/DockerGroup:
- Name of the user group for using docker - defaults to "docker-users"/noAddGroupUser
- Prevent adding the current user to the DockerGroup/StartService
- Automatically start (or restart) the docker service after install (or upgrade)
To pass parameters, use --params "''"
(e.g. choco install docker-engine [other options] --params="'/DockerGroup:my-docker-group /noAddGroupUser'"
).
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades
.
Please Note: If you change the DockerGroup having previously installed docker-engine, the daemon.json
config file will not be overwritten, you will need to manually update it.
# This runs in 0.9.10+ before upgrade and uninstall.
# Use this file to do things like stop services prior to upgrade or uninstall.
# NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you
# need to uninstall an MSI prior to upgrade, put the functionality in this
# file without calling the uninstall script. Make it idempotent in the
# uninstall script so that it doesn't fail when it is already uninstalled.
# NOTE: For upgrades - like the uninstall script, this script always runs from
# the currently installed version, not from the new upgraded package version.
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
. "$toolsDir\helper.ps1"
Test-DockerdConflict
If ((Test-OurDockerd) -AND (Test-DockerdRunning))
{
#Shutdown and unregister service for upgrade
Write-output "Stopping docker service..."
Start-ChocolateyProcessAsAdmin -Statements "stop docker" "C:\Windows\System32\sc.exe"
Start-Sleep -seconds 3
If (-not (Test-DockerdStopped))
{
Throw "Could not stop the docker service, please stop manually and retry this package."
}
}
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
. "$toolsDir\helper.ps1"
Test-DockerdConflict
If (Test-OurDockerd)
{
Write-output "Unregistering docker service..."
Start-ChocolateyProcessAsAdmin -Statements "delete docker" "C:\Windows\System32\sc.exe"
}
Uninstall-BinFile -Name "docker"
Uninstall-ChocolateyZipPackage $env:ChocolateyPackageName "docker-$($env:ChocolateyPackageVersion).zip"
$EditionId = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'EditionID').EditionId
$RunningOnNano = $False
If ($EditionId -ilike '*Nano*') {
$RunningOnNano = $True
}
Function Test-ServicePath ($ServiceEXE, $FolderToCheck)
{
if ($RunningOnNano) {
#The NANO TP5 Compatible Way:
Return ([bool](@(wmic service | Where-Object {$_ -ilike "*$ServiceEXE*"}) -ilike "*$FolderToCheck*"))
}
Else
{
#The modern way:
Return ([bool]((Get-WmiObject win32_service | Where-Object {$_.PathName -ilike "*$ServiceEXE*"} | Select-Object -expand PathName) -ilike "*$FolderToCheck*"))
}
}
Function Test-OurDockerd
{
return (Test-ServicePath 'dockerd.exe' "$env:ProgramFiles") -Or (Test-ServicePath 'dockerd.exe' "$toolsDir")
}
Function Test-OurOldDockerd
{
return Test-ServicePath 'dockerd.exe' "$toolsDir"
}
Function Test-DockerdConflict
{
If (-not (Test-OurDockerd) -AND (sc.exe query docker | Select-String 'SERVICE_NAME: docker' -Quiet))
{
$ExistingDockerInstancePath = Get-ItemProperty hklm:\system\currentcontrolset\services\* | Where-Object {($_.ImagePath -ilike '*dockerd.exe*')} | Select-Object -expand ImagePath
Throw "You have requested that the docker service be installed, but this system appears to have an instance of an docker service configured for another folder ($ExistingDockerInstancePath). You will need to remove that instance of Docker to use the one that comes with this package."
}
}
Function Test-DockerdRunning
{
return [bool](C:\Windows\System32\sc.exe query docker | Select-String 'RUNNING' -Quiet)
}
Function Test-DockerdStopped
{
return [bool](C:\Windows\System32\sc.exe query docker | Select-String 'STOPPED' -Quiet)
}
Log in or click on link to see number of positives.
- docker-engine.26.0.1.nupkg (701d12ee83e4) - ## / 63
- docker-26.0.1.zip (4cccb5ff24d2) - ## / 65
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 Engine 27.3.0 | 7411 | Thursday, September 19, 2024 | Approved | |
Docker Engine 27.2.1 | 1177 | Wednesday, September 11, 2024 | Approved | |
Docker Engine 27.1.1 | 4898 | Wednesday, July 24, 2024 | Approved | |
Docker Engine 27.1.0 | 347 | Monday, July 22, 2024 | Approved | |
Docker Engine 27.0.3 | 1939 | Monday, July 1, 2024 | Approved | |
Docker Engine 27.0.2 | 654 | Thursday, June 27, 2024 | Approved | |
Docker Engine 27.0.1 | 350 | Tuesday, June 25, 2024 | Approved | |
Docker Engine 26.1.4 | 390 | Friday, June 21, 2024 | Approved | |
Docker Engine 26.1.0 | 6197 | Tuesday, April 23, 2024 | Approved | |
Docker Engine 26.0.2 | 43 | Friday, April 19, 2024 | Approved | |
Docker Engine 26.0.1 | 518 | Friday, April 19, 2024 | Approved | |
Docker Engine 26.0.0 | 2340 | Thursday, March 21, 2024 | Approved | |
Docker Engine 25.0.5 | 47 | Thursday, March 21, 2024 | Approved | |
Docker Engine 25.0.4 | 1629 | Thursday, March 7, 2024 | Approved | |
Docker Engine 25.0.3.20240227 | 1095 | Friday, March 1, 2024 | Approved | |
Docker Engine 25.0.3 | 2390 | Wednesday, February 7, 2024 | Approved | |
Docker Engine 25.0.2 | 1355 | Thursday, February 1, 2024 | Approved | |
Docker Engine 25.0.1 | 764 | Wednesday, January 24, 2024 | Approved | |
Docker Engine 25.0.0 | 445 | Monday, January 22, 2024 | Approved | |
Docker Engine 24.0.7.20231201 | 3337 | Friday, December 1, 2023 | Approved | |
Docker Engine 24.0.7 | 1439 | Wednesday, November 15, 2023 | Approved | |
Docker Engine 24.0.6 | 6080 | Wednesday, September 13, 2023 | Approved | |
Docker Engine 24.0.4 | 13647 | Friday, July 14, 2023 | Approved | |
Docker Engine 24.0.1 | 2892 | Monday, May 22, 2023 | Approved | |
Docker Engine 24.0.0 | 326 | Wednesday, May 17, 2023 | Approved | |
Docker Engine 23.0.6 | 365 | Tuesday, May 16, 2023 | Approved | |
Docker Engine 23.0.5 | 763 | Tuesday, May 2, 2023 | Approved | |
Docker Engine 23.0.4 | 695 | Tuesday, April 18, 2023 | Approved | |
Docker Engine 23.0.3 | 855 | Wednesday, April 5, 2023 | Approved | |
Docker Engine 23.0.2 | 667 | Tuesday, March 28, 2023 | Approved | |
Docker Engine 23.0.1 | 2154 | Friday, February 10, 2023 | Approved | |
Docker Engine 23.0.0 | 456 | Friday, February 3, 2023 | Approved | |
Docker Engine 20.10.24 | 228 | Wednesday, April 5, 2023 | Approved | |
Docker Engine 20.10.23 | 955 | Friday, January 20, 2023 | Approved | |
Docker Engine 20.10.22 | 1322 | Friday, December 16, 2022 | Approved | |
Docker Engine 20.10.21 | 76 | Friday, December 16, 2022 | Approved | |
Docker Engine 20.10.20 | 2165 | Wednesday, October 19, 2022 | Approved | |
Docker Engine 20.10.19 | 111 | Wednesday, October 19, 2022 | Approved | |
Docker Engine 20.10.18 | 2545 | Friday, September 9, 2022 | Approved | |
Docker Engine 20.10.17 | 2702 | Thursday, June 9, 2022 | Approved | |
Docker Engine 20.10.16 | 872 | Friday, May 13, 2022 | Approved | |
Docker Engine 20.10.15 | 310 | Monday, May 9, 2022 | Approved | |
Docker Engine 20.10.14 | 1976 | Thursday, March 24, 2022 | Approved | |
Docker Engine 20.10.13 | 633 | Tuesday, March 15, 2022 | Approved | |
Docker Engine 20.10.12 | 1259 | Monday, January 31, 2022 | Approved | |
Docker Engine 20.10.11 | 1576 | Monday, November 29, 2021 | Approved | |
Docker Engine 20.10.10 | 531 | Wednesday, November 3, 2021 | Approved | |
Docker Engine 20.10.9 | 496 | Thursday, October 21, 2021 | Approved | |
Docker Engine 20.10.8 | 803 | Wednesday, September 22, 2021 | Approved |
This package has no dependencies.
Ground Rules:
- This discussion is only about Docker Engine and the Docker Engine 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 Engine, 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.