-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Description
Windows Server 2019 does not start containers automatically on reboot, even when all docker-compose are labelled as restart: always.
Steps to reproduce the issue:
- Open PowerShell with admin privileges.
- Run any docker-compose file:
docker-compose up
version: "3"
services:
postgres_db:
image: stellirin/postgres-windows:12-1809
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
- Execute Restart-Computer.
When the machine starts up, execute docker ps in PowerShell with admin privileges.
Describe the results you received:
docker ps shows no containers running.
Running docker start $(docker ps -a -q -f status=exited) returns:
Error response from daemon: network 325cbdb7ce3b29e0c744d76783d94bc7637293b6efce7d912669581d5af5e4eb not found
Error response from daemon: network f555844ad59f8e1e9d95a01a8fce580ac1f2a0582acb2475c218fb8aab5bd1fb not found
Error: failed to start containers: 3cf6c5c3207a, 1df07dd99139
Describe the results you expected:
docker ps should should show containers running.
Additional information you deem important (e.g. issue happens only occasionally):
Happens every time on Windows Server 2019.
Output of docker version:
Client: Mirantis Container Runtime
Version: 20.10.9
API version: 1.41
Go version: go1.16.12m2
Git commit: 591094d
Built: 12/21/2021 21:34:30
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Mirantis Container Runtime
Engine:
Version: 20.10.9
API version: 1.41 (minimum version 1.24)
Go version: go1.16.12m2
Git commit: 9b96ce992b
Built: 12/21/2021 21:33:06
OS/Arch: windows/amd64
Experimental: false
Output of docker info:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
cluster: Manage Mirantis Container Cloud clusters (Mirantis Inc., v1.9.0)
registry: Manage Docker registries (Docker Inc., 0.1.0)
Server:
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 2
Server Version: 20.10.9
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private 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.1817)
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 16GiB
Name: WIN-T721FCB2TP1
ID: NDM2:5C34:GAV5:QDFF:TF52:327Y:HQUW:EZU5:ROH3:4T5B:QPML:KZ7H
Docker Root Dir: C:\ProgramData\docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.):
Windows Server 2019 (Version 1809)
Server on is a VM on a physical machine located inside my office building.
Very very similar issue to #39623. However, it seems like my network is disappearing on restart.