skip to Main Content

NuGet in Docker: Error NU1301: Unable to load the service index for source – Sequence contains no elements

I'm trying to download NuGet packages on Docker (Linux) for a .NET 6 application behind a corporate proxy ARG netVersion=6.0 FROM mcr.microsoft.com/dotnet/sdk:${netVersion} AS build-env WORKDIR /app COPY company-root-ca.crt /usr/local/share/ca-certificates/company-root-ca.crt RUN update-ca-certificates COPY App/*.csproj . RUN dotnet restore --configfile nuget.config The…

VIEW QUESTION

Docker exits container

I am trying to build my own docker image for apache2 and PHP. Can anyone tell my why my container exits after run when it supposes to run ["apache2ctl", "-D", "FOREGROUND"]? FROM ubuntu:latest RUN apt update -y && apt upgrade…

VIEW QUESTION
Back To Top
Search