A non-dockerfile method for installing dotnet core using the Alpine Docker image Dind

Source: Internet
Author: User
Tags dotnet docker run

1. Download the dind image

Docker Pull Docker:dind

2. Perform the image

Docker run-it--privileged--name some-docker-d docker:dind

3. In-mirror processing

--no-cache Icu-libs

4. Download the Dotnet tar package

HTTPS://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.302-linux-x64-alpine-binaries 

Very clear for the

HTTPS://download.microsoft.com/download/4/0/9/40920432-3302-47a8-b13c-bbc4848ad114/ Dotnet-sdk-2.1.302-linux-musl-x64.tar.gz

5. Copy to the host running Dind

then put the compressed package into the Dockerdocker cp dotnet-sdk-2.1. 302-linux-musl-x64.tar.gz some-docker:/

6. Install the dotnet using the simplest method

Place all extracted files in the/usr/bin directory

mkdir dotnetcoremv dotnet-sdk-2.1. 302-linux-musl--zxf dotnet-sdk-2.1. 302-linux-musl-*-r/usr/

7. Docker commit to create a new image

10.24. 101.99:bayi/opensource/alpine_dind_dotnet:2.0

8. Docker push to a private harbor warehouse

10.24. 101.99:bayi/opensource/alpine_dind_dotnet:2.0

9. Testing of other machines

Method with the previous

Learning sources

HTTPS://asciinema.org/a/24707

will be too little next time to learn how to write Dockerfile

A non-dockerfile method for installing dotnet core using the Alpine Docker image Dind

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.