Skip to content

dotnet-install.sh cannot get sdks after install #22148

@bryht

Description

@bryht

curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 3.1

I try to use this script to install sdk in a docker image, it seems success
image

but when I use dotnet --info, it didn`t show sdks..
image

my docker image, FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions