Docker Container Download For Mac

The Docker container platform is always running on top of the host operating system. For the following tutorial I’ll use Docker Desktop for Mac. If you only want to download an image. With Visual Studio for Mac, you can easily build, debug, and run containerized ASP.NET Core apps and publish them to Azure. Docker Desktop; Visual Studio for Mac 2019; Installation and Setup. For Docker installation, review and follow the information at Install Docker Desktop for Mac. Fixes since Docker Desktop RC 1. Inter-container HTTP and HTTPS traffic is now routed correctly. Fixes docker/for-mac#5476. Fixes since Docker Desktop preview 3.1.0. The build should update automatically to future versions. HTTP proxy support is working, including support for domain name based noproxy rules via TLS SNI. Fixes docker/for-mac#2732. 1.2 Installing on MacOS. To install Docker on MacOS desktop, first go to the Docker Store and download Docker Community Edition for Mac. Double-click Docker.dmg to open the installer, then drag Moby the whale to the Applications folder. Double-click Docker.app in the Applications folder to start Docker.

-->

In this article, you'll learn how to install .NET on macOS. .NET is made up of the runtime and the SDK. The runtime is used to run a .NET app and may or may not be included with the app. The SDK is used to create .NET apps and libraries. The .NET runtime is always installed with the SDK.

The latest version of .NET is 5.0.

Supported releases

The following table is a list of currently supported .NET releases and the versions of macOS they're supported on. These versions remain supported until the version of .NET reaches end-of-support.

  • A ✔️ indicates that the version of .NET Core is still supported.
  • A ❌ indicates that the version of .NET Core isn't supported.
Operating System.NET Core 2.1.NET Core 3.1.NET 5.0
macOS 11.0 'Big Sur'✔️ 2.1 (Release notes)✔️ 3.1 (Release notes)✔️ 5.0 (Release notes)
macOS 10.15 'Catalina'✔️ 2.1 (Release notes)✔️ 3.1 (Release notes)✔️ 5.0 (Release notes)
macOS 10.14 'Mojave'✔️ 2.1 (Release notes)✔️ 3.1 (Release notes)✔️ 5.0 (Release notes)
macOS 10.13 'High Sierra'✔️ 2.1 (Release notes)✔️ 3.1 (Release notes)✔️ 5.0 (Release notes)
macOS 10.12 'Sierra'✔️ 2.1 (Release notes)❌ 3.1 (Release notes)❌ 5.0 (Release notes)

Unsupported releases

The following versions of .NET are ❌ no longer supported. The downloads for these still remain published:

  • 3.0 (Release notes)
  • 2.2 (Release notes)
  • 2.0 (Release notes)

Runtime information

The runtime is used to run apps created with .NET. When an app author publishes an app, they can include the runtime with their app. If they don't include the runtime, it's up to the user to install the runtime.

There are two different runtimes you can install on macOS:

  • ASP.NET Core runtime
    Runs ASP.NET Core apps. Includes the .NET runtime.

  • .NET runtime
    This runtime is the simplest runtime and doesn't include any other runtime. It's highly recommended that you install ASP.NET Core runtime for the best compatibility with .NET apps.

SDK information

The SDK is used to build and publish .NET apps and libraries. Installing the SDK includes both runtimes: ASP.NET Core and .NET.

Dependencies

.NET is supported on the following macOS releases:

.NET Core VersionmacOSArchitecturesMore information
5.0High Sierra (10.13+)x64More information
3.1High Sierra (10.13+)x64More information
3.0High Sierra (10.13+)x64More information
2.2Sierra (10.12+)x64More information
2.1Sierra (10.12+)x64More information

Beginning with macOS Catalina (version 10.15), all software built after June 1, 2019 that is distributed with Developer ID, must be notarized. This requirement applies to the .NET runtime, .NET SDK, and software created with .NET.

The runtime and SDK installers for .NET 5.0 and .NET Core 3.1, 3.0, and 2.1, have been notarized since February 18, 2020. Prior released versions aren't notarized. If you run a non-notarized app, you'll see an error similar to the following image:

For more information about how enforced-notarization affects .NET (and your .NET apps), see Working with macOS Catalina Notarization.

libgdiplus

.NET applications that use the System.Drawing.Common assembly require libgdiplus to be installed.

An easy way to obtain libgdiplus is by using the Homebrew ('brew') package manager for macOS. After installing brew, install libgdiplus by executing the following commands at a Terminal (command) prompt:

Install with an installer

Install docker for mac

macOS has standalone installers that can be used to install the .NET 5.0 SDK:

Download and manually install

As an alternative to the macOS installers for .NET, you can download and manually install the SDK and runtime. Manual installation is usually performed as part of continuous integration testing. For a developer or user, it's generally better to use an installer.

First, download a binary release for either the SDK or the runtime from one of the following sites. If you install the .NET SDK, you will not need to install the corresponding runtime:

  • ✔️ .NET 5.0 downloads
  • ✔️ .NET Core 3.1 downloads
  • ✔️ .NET Core 2.1 downloads

Next, extract the downloaded file and use the export command to set DOTNET_ROOT to the extracted folder's location and then ensure .NET is in PATH. This should make the .NET CLI commands available at the terminal.

Alternatively, after downloading the .NET binary, the following commands may be run from the directory where the file is saved to extract the runtime. This will also make the .NET CLI commands available at the terminal and set the required environment variables. Remember to change the DOTNET_FILE value to the name of the downloaded binary:

Tip

The preceding export commands only make the .NET CLI commands available for the terminal session in which it was run.

You can edit your shell profile to permanently add the commands. There are a number of different shells available for Linux and each has a different profile. For example:

  • Bash Shell: ~/.bash_profile, ~/.bashrc
  • Korn Shell: ~/.kshrc or .profile
  • Z Shell: ~/.zshrc or .zprofile

Edit the appropriate source file for your shell and add :$HOME/dotnet to the end of the existing PATH statement. If no PATH statement is included, add a new line with export PATH=$PATH:$HOME/dotnet.

Also, add export DOTNET_ROOT=$HOME/dotnet to the end of the file.

This approach lets you install different versions into separate locations and choose explicitly which one to use by which application.

Install with Visual Studio for Mac

Visual Studio for Mac installs the .NET SDK when the .NET workload is selected. To get started with .NET development on macOS, see Install Visual Studio 2019 for Mac.

.NET SDK versionVisual Studio version
5.0Visual Studio 2019 for Mac version 8.8 or higher.
3.1Visual Studio 2019 for Mac version 8.4 or higher.
2.1Visual Studio 2019 for Mac version 8.0 or higher.

Install alongside Visual Studio Code

Visual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code is available for Windows, macOS, and Linux.

While Visual Studio Code doesn't come with an automated .NET installer like Visual Studio does, adding .NET support is simple.

  1. Download and install Visual Studio Code.
  2. Download and install the .NET SDK.
  3. Install the C# extension from the Visual Studio Code marketplace.

Install with bash automation

The dotnet-install scripts are used for automation and non-admin installs of the runtime. You can download the script from the dotnet-install script reference page.

The script defaults to installing the latest long term support (LTS) version, which is .NET Core 3.1. You can choose a specific release by specifying the current switch. Include the runtime switch to install a runtime. Otherwise, the script installs the SDK.

Note

The previous command installs the ASP.NET Core runtime for maximum compatability. The ASP.NET Core runtime also includes the standard .NET runtime.

Docker

Containers provide a lightweight way to isolate your application from the rest of the host system. Containers on the same machine share just the kernel and use resources given to your application.

.NET can run in a Docker container. Official .NET Docker images are published to the Microsoft Container Registry (MCR) and are discoverable at the Microsoft .NET Core Docker Hub repository. Each repository contains images for different combinations of the .NET (SDK or Runtime) and OS that you can use.

Microsoft provides images that are tailored for specific scenarios. For example, the ASP.NET Core repository provides images that are built for running ASP.NET Core apps in production.

For more information about using .NET Core in a Docker container, see Introduction to .NET and Docker and Samples.

Next steps

  • How to check if .NET Core is already installed.
  • Working with macOS Catalina notarization.
  • Tutorial: Get started on macOS.
  • Tutorial: Create a new app with Visual Studio Code.
  • Tutorial: Containerize a .NET Core app.

General availability of Docker Desktop for M1-powered Macs extends Docker’s leadership in enabling development pipelines for Arm-based applications

PALO ALTO, Calif. – April 15, 2021 – Docker, Inc.™, today announced general availability of its much-anticipated Docker Desktop for Mac [Apple Silicon], enabling developers to leverage the advantages of the latest Macs powered by the M1 chip and extending the reach of their Docker collaborative application development platform to a new architecture.

“This is great news for the many developers who have been clamoring for Docker Desktop for Macs with Apple Silicon,” said Docker Chief Technology Officer Justin Cormack. “This marks an expansion of the broader developer universe that extends Docker Desktop into the Mac’s custom silicon where they can write powerful applications.”

With nearly 45,000 installs of the tech preview, developers using Docker Desktop for Mac [Apple Silicon] find it to be faster and quieter and just as easy to get up and running in minutes where they can rapidly code, test and collaborate while ensuring consistency between development and production environments. Docker offers a comprehensive and integrated end-to-end experience that delights and empowers developers, without limiting their choices of ecosystem tools and clouds. This consists of UIs, CLIs and APIs that are engineered to work together across the entire app delivery lifecycle, along with the nearly 90,000 Arm-based images, including Docker Official Images, available on Docker Hub.

“To the many developers eager to know if they can use the latest Macs as a dev machine with Docker, the wait is over,” said Docker Captain Ajeet Singh Raina. “Docker Desktop for Mac [Apple Silicon] will let you do everything you’ve been able to do on a Mac already, and you’ll be able to do it faster and with less noise.”

Docker Desktop for Mac [Apple Silicon] release extends Docker’s leadership in supporting developer choice no matter the architecture. Docker has long supported multi-platform container images with the ability to build and run both x86 and Arm images on Docker Desktop. With this release, developers can build and run end-to-end on the Arm architecture from Docker Desktop on their M1-powered Macs to Arm-based cloud servers such as AWS Graviton 2.

“Docker developers have even more capabilities for cross platform development without having to learn anything new or changing how they build, share and run applications. All of the commands, local tools, build pipelines and deployment automations just work,' added Cormack. 'We're committed to making sure that the Docker standard for containers runs on all of the platforms our developers want today and tomorrow.”

Read more details about the capabilities of Docker Desktop for Mac [Apple Silicon] on our blog. https://dockr.ly/3ab8CyH

DockerCon LIVE 2021

Join us for DockerCon LIVE 2021 on Thursday, May 27. DockerCon LIVE is a free, one day virtual event that is a unique experience for developers and development teams who are building the next generation of modern applications. If you want to learn about how to go from code to cloud fast and how to solve your development challenges, DockerCon LIVE 2021 offers engaging live content to help you build, share and run your applications. Register today at https://dockr.ly/2PSJ7vn

Resources:

  • Download Docker Desktop for Mac [Apple Silicon] - https://dockr.ly/3wENZo5
  • Find nearly 90,000 Arm images on Docker Hub - https://dockr.ly/3uP3MyY
  • Apple Silicon tech preview release notes - https://dockr.ly/3tyBHvd
  • Recent Apple Silicon blogs from Docker:
    • New Docker Desktop Preview for Apple M1 Released, February 17, 2021 - https://dockr.ly/2N5bMff
    • Download and Try the Tech Preview of Docker Desktop for M1, December 16, 2020 - https://dockr.ly/2WmWWBK
    • Apple Silicon M1 Chips and Docker, November 16, 2020 - https://dockr.ly/32P3M6C

About Docker

Docker helps millions of developers efficiently and collaboratively build, share and run applications. The Docker collaborative application development platform provides developers with an unmatched experience for an integrated, reliable and secure workflow that accelerates app delivery from code to the cloud. Through a combination of the world’s largest marketplace of components and integrations with leading tools, Docker allows teams to rapidly create innovative applications. For more information, visit www.docker.com

Docker Desktop For Mac

Media Contact

Docker Container Download For Mac Windows 10

David Oro