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