none
Keeping Docker Daemon running wit Docker CE on windows 2019 or 2016 RRS feed

  • Question

  • Hi,  We have docker CE setup on some machines and doing so testing with Docker containers, deploys,etc.  Seems to be working ok for the most part.

    However we have docker desktop / docker engine / daemon  starting up on a user login.   Once that user logs out or is auto logged out the docker daemon stops running and the docker builds start failing.

    error during connect: Delete http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/containername: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.

    Is there a way to keep the docker daemon running without a user login?

    Here is our docker info details

    Client:
     Debug Mode: false

    Server:
     Containers: 65
      Running: 3
      Paused: 0
      Stopped: 62
     Images: 47
     Server Version: 19.03.2
     Storage Driver: windowsfilter
      Windows:
     Logging Driver: json-file
     Plugins:
      Volume: local
      Network: ics l2bridge l2tunnel nat null overlay transparent
      Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
     Swarm: inactive
     Default Isolation: process
     Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
     Operating System: Windows Server 2019 Standard Version 1809 (OS Build 17763.678)
     OSType: windows
     Architecture: x86_64
     CPUs: 4
     Total Memory: 8GiB
     Name: Machine1
     ID: 4AWG:XBHX:UCS2:KQWD:GR5A:DILQ:TX7A:V7QY:53YY:LLBV:WYDF:NQ2C
     Docker Root Dir: E:\docker_data
     Debug Mode: true
      File Descriptors: -1
      Goroutines: 48
      System Time: 2019-09-26T14:57:54.7875652-05:00
      EventsListeners: 1
     Registry: https://index.docker.io/v1/
     Labels:
     Experimental: false
     Insecure Registries:
      127.0.0.0/8
     Live Restore Enabled: false
     Product License: Community Engine


    • Edited by LanceLyons Monday, September 30, 2019 4:47 PM
    Thursday, September 26, 2019 8:01 PM

All replies

  • Greetings,

    You can use following steps to install Docker EE on windows server. It will be running as a service.

    https://docs.docker.com/install/windows/docker-ee/#use-a-script-to-install-docker-ee


    Sic Parvis Magna

    Friday, September 27, 2019 9:30 AM
  • Thanks Huajun,    That certainly seems to have done the trick.

    thanks

    Lance

    • Edited by LanceLyons Tuesday, October 1, 2019 1:31 PM
    Monday, September 30, 2019 2:22 PM
  • Does the version of Docker Enterprise Engine mentioned above support Linux images?  I have tried to do dockercli.exe -SwitchDaemon and it seems to revert to Docker CE that is also installed on the machine to allow certain docker commands like docker-compose.

    Wednesday, October 9, 2019 6:42 PM
  • Linux Container on Windows (LCOW) is under active development. Please refer to this doc.https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/linux-containers


    Sic Parvis Magna

    Thursday, October 10, 2019 9:08 AM