Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

619
Views
use grpc en dotnet/core/runtime-deps:2.2-alpine3.9 obtuvo el error de símbolo no encontrado

He usado grpc en mi programa .netcore y quiero crear una imagen acoplable para usarlo.

así es como construyo mi programa en dockerfile

 RUN dotnet publish -r linux-musl-x64 --no-restore -c Release -o /out

Y copio a otras imágenes como mis imágenes como

 RUN apk add --no-cache libc6-compat WORKDIR /app COPY --from=build /out ./ ENTRYPOINT ["./MyService"]

La pregunta es sobre la imagen de tiempo de ejecución. Si uso "microsoft/dotnet:2.2-runtime-deps-alpine" no hay problema, PERO si uso "mcr.microsoft.com/dotnet/core/runtime-deps:2.2-alpine3.9"

Recibí un mensaje de error.

 Unhandled Exception: System.IO.IOException: Error loading native library "/app/libgrpc_csharp_ext.x64.so". Symbol not found: PAL_dlerror at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives) at Grpc.Core.Internal.NativeExtension.LoadUnmanagedLibrary() at Grpc.Core.Internal.NativeExtension.LoadNativeMethods() at Grpc.Core.Internal.NativeExtension..ctor() at Grpc.Core.Internal.NativeExtension.Get() at Grpc.Core.GrpcEnvironment.GrpcNativeInit() at Grpc.Core.GrpcEnvironment..ctor() at Grpc.Core.GrpcEnvironment.AddRef() at Grpc.Core.Server..ctor(IEnumerable`1 options) at MyService.Program.Main(String[] args) in /code/MyService/Program.cs:line 32

¿Cómo puedo arreglar esto? ¿Cuál es la diferencia entre estas dos imágenes? Solo puedo encontrar el Dockerfile del segundo en docker hub

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!