Docker/Windows: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
  Docker Engine on Windows
  Docker Engine on Windows
  https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon
  https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon
== Config ==
C:\programdata\docker\config\daemon.json


== Isolation ==
== Isolation ==
Line 28: Line 32:


  & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon .
  & $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon .
== Service ==
See service:
docker qc docker
Service is running as: docker
C:\WINDOWS\system32\dockerd.exe --run-service --service-name docker -G docker-users
example:
sc config docker binPath="C:\WINDOWS\system32\dockerd.exe --run-service --service-name docker -G docker-users"
<pre>
C:\> sc qc docker
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: docker
        TYPE              : 10  WIN32_OWN_PROCESS
        START_TYPE        : 2  AUTO_START
        ERROR_CONTROL      : 1  NORMAL
        BINARY_PATH_NAME  : C:\WINDOWS\system32\dockerd.exe --run-service --service-name docker -G docker-users
        LOAD_ORDER_GROUP  :
        TAG                : 0
        DISPLAY_NAME      : Docker Engine
        DEPENDENCIES      :
        SERVICE_START_NAME : LocalSystem
</pre>


== Moby Project ==
== Moby Project ==
Line 36: Line 67:
  What is Moby?
  What is Moby?
  Moby is an open framework created by Docker to assemble specialized container systems without reinventing the wheel. It provides a “lego set” of dozens of standard components and a framework for assembling them into custom platforms.
  Moby is an open framework created by Docker to assemble specialized container systems without reinventing the wheel. It provides a “lego set” of dozens of standard components and a framework for assembling them into custom platforms.
== Uninstall Docker ==
See https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon


== keywords ==
== keywords ==

Revision as of 19:49, 14 May 2024

Windows

Windows Containers GitHub

Github microsoft/Windows-Containers
https://github.com/microsoft/Windows-Containers

Install Docker Community Edition

Docker Community Edition (CE) provides a standard runtime environment for containers with a common API and command-line interface (CLI). It is managed by the open source community as part of the Moby Project.

https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1
.\install-docker-ce.ps1
Get started: Prep Windows for containers
https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=dockerce
Docker Engine on Windows
https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon

Config

C:\programdata\docker\config\daemon.json

Isolation

Windows Server Containers use Hyper-V isolation by default on Windows 10 and 11 to provide developers with the same kernel version and configuration that will be used in production.

Switch to Windows Containers

& $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemon .

Service

See service:

docker qc docker

Service is running as: docker

C:\WINDOWS\system32\dockerd.exe --run-service --service-name docker -G docker-users

example:

sc config docker binPath="C:\WINDOWS\system32\dockerd.exe --run-service --service-name docker -G docker-users"
C:\> sc qc docker
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: docker
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : C:\WINDOWS\system32\dockerd.exe --run-service --service-name docker -G docker-users
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : Docker Engine
        DEPENDENCIES       :
        SERVICE_START_NAME : LocalSystem

Moby Project

Moby Project
https://mobyproject.org/
What is Moby?
Moby is an open framework created by Docker to assemble specialized container systems without reinventing the wheel. It provides a “lego set” of dozens of standard components and a framework for assembling them into custom platforms.

Uninstall Docker

See https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon

keywords