I'm running a .NET Core application in a Linux container.
The container runs fine locally, but when run in Azure Container Instances, it immediately stops.
The container's log file is shown below (retrieved using Get-AzContainerInstanceLog
):
failed to open log file "/var/log/pods/336d7870-5a8e-11e9-925e-000d3a0ddc4a/test-1_0.log":
open /var/log/pods/336d7870-5a8e-11e9-925e-000d3a0ddc4a/test-1_0.log: no such file or directory
EDIT:
I've never come across the mentioned file or the pods
path before (/var/log/pods/336d7870-5a8e-11e9-925e-000d3a0ddc4a/test-1_0.log
), and I have no idea what part of the OS and/or Docker needs it.
The log file and path isn't something that's used by my application running inside the container (it logs directly to the console, and as mentioned runs fine in a Linux container on my local Docker for Windows installation).
Google says it might be related to Kubernetes, but I'm not using Kubernetes "actively" (i.e. it might be used by Azure Container Instances under the covers, but it's not something that I as a user of ACI am aware of). Sorry for the unclear error description, I'll try to rephrase it.