Comments (2)
@aligin, You don't by chance have an older microsoft/dotnet
image cached on your machine? I just want to rule out the obvious 😃
I ran the microsoft/dotnet:latest
image, did a dotnet new
, modified the generated project.json
to have your dependencies and frameworks. I had to remove the Monq.IdentityServer4.EntityFrameworkCore.Users
reference. I was then able to successfully run dotnet restore
. I checked the project.lock.json
and noticed the Libuv
referenced by Microsoft.ASPNetCore.Server.Kestrel
is older than yours so I am wondering why your repo is trying to pull a newer version
Here is a snippet of my project.lock.json
"Microsoft.AspNetCore.Server.Kestrel/1.0.0-rc2-final": {
"type": "package",
"dependencies": {
"Libuv": "1.9.0-rc2-20896",
"Microsoft.AspNetCore.Hosting": "1.0.0-rc2-final",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-rc2-final",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-rc2-final",
"System.Buffers": "4.0.0-rc2-24027",
"System.Collections": "4.0.11-rc2-24027",
"System.Diagnostics.Debug": "4.0.11-rc2-24027",
"System.Globalization": "4.0.11-rc2-24027",
"System.IO": "4.1.0-rc2-24027",
"System.Linq": "4.1.0-rc2-24027",
"System.Net.Primitives": "4.0.11-rc2-24027",
"System.Numerics.Vectors": "4.1.1-rc2-24027",
"System.Runtime.Extensions": "4.1.0-rc2-24027",
"System.Runtime.InteropServices": "4.1.0-rc2-24027",
"System.Text.Encoding": "4.0.11-rc2-24027",
"System.Threading": "4.0.11-rc2-24027",
"System.Threading.Tasks": "4.0.11-rc2-24027",
"System.Threading.Tasks.Extensions": "4.0.0-rc2-24027",
"System.Threading.Thread": "4.0.0-rc2-24027",
"System.Threading.ThreadPool": "4.0.10-rc2-24027",
"System.Threading.Timer": "4.0.1-rc2-24027"
},
Can you share what your NuGet.config looks like?
from dotnet-docker.
@MichaelSimons You are lifesaver. After you've noticed about the project.lock.json I realized that the problem in my deploying process. In the Dockerfile I copy project.json to docker dir, then make dotnat restore, so the project.lock.json is generated in docker container and then I copy my working dir entirely with project.lock.json generated from VisualStudio, so the project.lock.json is overwriting. Why VS has generated the "Libuv/1.9.0-rc2-20901" I don't know. Maybe old Nuget cache.
Thanks a lot.
from dotnet-docker.
Related Issues (20)
- Add "New Linux Distro Release" checklist back to this repo HOT 1
- Remove Alpine 3.18 images for .NET 6 HOT 2
- Not all Alpine floating tags point to the correct Alpine versions HOT 4
- Debian Arm64 images are surpisingly big HOT 3
- Move .NET 8 Azure Linux 3.0 Images to main
- Create an HTTP/3 / QUIC sample HOT 1
- Proposal: Drop PowerShell from Alpine and Ubuntu SDK images for .NET 9+ HOT 2
- Latest Azure Linux 3.0 drop is getting TLS error during `dotnet restore` HOT 1
- Azure DevOps Pipelines test reporting shows incorrect test parameters
- Simplify AzureLinux 3.0 multi-stage build with non-root user HOT 1
- Automatic dependency update PRs should include version information HOT 3
- CVE-2024-32002 detected in sdk:8.0-alpine3.19-amd64 HOT 2
- Missing images for 28 May 2024 Release HOT 5
- Attach SBOMs to images in the container registry HOT 3
- 8.0.3-alpine3.19-amd64 , or 8.0.6-alpine3.19-amd64 uses 3.19 Alpine which is Vulnerable with CVE-2023-42363 HOT 3
- standard_init_linux.go:228: exec user process caused: exec format error after building docker image on MacBook M1 Max for linux/amd64 platform
- Remove Azure Linux 3.0 Symcrypt issue workaround
- New tag for alpine images HOT 6
- Consider adding OCI Image Annotations to .NET images HOT 2
- Link to the Container Vulnerability Workflow from the readmes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-docker.