Open tangbao0002 opened 2 years ago
What command are you using to run the container?
I runned the container by using 'docker run -p 9000:80 mywebapp'
What app are you running?
Not quite the same, but I notice this problem on my Synology. I've been meeting to update the sample to avoid this.
rich@kamloops:~$ docker run --rm mcr.microsoft.com/dotnet/samples
Unable to find image 'mcr.microsoft.com/dotnet/samples:latest' locally
latest: Pulling from dotnet/samples
Digest: sha256:c1e940eb88977f20266a61a9c036853e3a7a413019474da45b7023a1e0bf7916
Status: Downloaded newer image for mcr.microsoft.com/dotnet/samples:latest
42
42 ,d ,d
42 42 42
,adPPYb,42 ,adPPYba, MM42MMM 8b,dPPYba, ,adPPYba, MM42MMM
a8" `Y42 a8" "8a 42 42P' `"8a a8P_____42 42
8b 42 8b d8 42 42 42 8PP""""""" 42
"8a, ,d42 "8a, ,a8" 42, 42 42 "8b, ,aa 42,
`"8bbdP"Y8 `"YbbdP"' "Y428 42 42 `"Ybbd8"' "Y428
.NET 6.0.7
Debian GNU/Linux 11 (bullseye)
OSArchitecture: X64
ProcessorCount: 8
TotalAvailableMemoryBytes: 7.54 GiB
Unhandled exception. System.IO.FileNotFoundException: Could not find file '/sys/fs/cgroup/cpu/cpu.cfs_quota_us'.
File name: '/sys/fs/cgroup/cpu/cpu.cfs_quota_us'
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.File.InternalReadAllLines(String path, Encoding encoding)
at System.IO.File.ReadAllLines(String path)
at Program.<Main>$(String[] args) in /source/Program.cs:line 61
Can you post that as a gist or something? I don't think GitHub email support attachments. Also, replying by email is never great and should generally be avoided.
Thanks for your reply, My app is a simple test project developed with .Net 6, And the attachment is the source code. web.zip
In my conputer, the docker information is as the following:
My dockerfile is as the following:
And the error is as the following: