I am relatively new to docker. I went through a process of creating an asp net core 2.1 docker container using VS community 2019. I was able to get that to work and run properly.
the docker file is as shown below.
FROM mcr.microsoft.com/dotnet/core/aspnet:2.1-nanoserver-1809 AS base
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-nanoserver-1809 AS build
COPY [“aspnetapp.csproj”, “aspnetapp/”]
RUN dotnet restore “aspnetapp/aspnetapp.csproj”
COPY . .
COPY . .
RUN dotnet build “aspnetapp.csproj” -c Release -o /app
FROM build AS publish
RUN dotnet publish “aspnetapp.csproj” -c Release -o /app
FROM base AS final
COPY --from=publish /app .
ENTRYPOINT [“dotnet”, “aspnetapp.dll”]
I was wondering if there was a way to explore the filesystem for this container so I can see whats actually there in the container / image.
I have tried docker exec -t -i mycontainer powershell.exe (also cmd.exe)
and this doesnt work because Im guessing there is no cmd.exe.
what would be the best way to explore the image or container?
Also is there a way to see the container changes as the various commands are being run from the dockerfile?
thanks in advance