Building Optimized Docker Images with ASP.NET Core

If you’re exploring docker, you’ll often see dockerfiles that demonstrate the simplicity of building a docker image by copying your source into a container and voila, you have a docker image with the environment packaged with your app. FROM microsoft/dotnet WORKDIR /app ENV ASPNETCORE_URLS http://+:80 EXPOSE 80 COPY . . RUN dotnet restore ENTRYPOINT [“dotnet”, “run”] While…

1

Running Scripts in a Docker Container from Windows- CR or CRLF

For Ignite 2016, I’m building out a demo for building your .NET Core code in a container. This is part of our story behind building optimized images. But, before I get to that post, what started out as something simple, something I’ve done on my Mac fairly easily turned into a frustrating experience from Windows. It…

0

Docker for Windows, Network Shares and $ in your password

If you’ve been using our docker tools you’ve noticed we depend highly on network sharing for Docker for Windows. For the Linux host to mount your Windows drives, you need to provide a username/password. What you may not realize is Linux has some special characters it may not always handle. Short story: if you’re having trouble with volume sharing &…

1

Configuring Docker for Windows Shared Drives / Volume Mounting with AD

d4w-shared-drives
d4w-shared-drives

If you’ve had a chance to work with the Docker for Windows beta, you’ve seen the promise for how much easier this can be compared to VirtualBox. That said, there are still some issues, thus the beta tag. One such issue is volume mounting. If you work for an enterprise, you more than likely log…

5

Building .NET Core Linux Docker Images with Visual Studio Team Services

configured-build-steps
configured-build-steps

If you’ve been wondering how to build a .NET Core app into a Docker image using VSTS, well here’s the current steps as of June 2016. Prerequisites You’ll need the following to complete this walk through Docker Tools for Visual Studio 0.21 to build the docker assets we’ll use for CI in VSTS Docker Tools for Visual Studio Team…

2

Defaulting to Docker for Windows with Docker Tools for Visual Studio

When using Docker Tools for Visual Studio, we default the Docker host to use Docker Toolbox. Or, more specifically, we set the default docker machine to be named default, which people typically create a VirtualBox host named default. This is documented here. Docker for Windows doesn’t use Docker-Machine, rather assumes no HOST entries are set. To…

0

Docker Containers as the new Binaries of deployment

In prep for .NET Conf, I was asked by Vaso to explain some of the benefits of containers. I was talking with one of our engineering leaders in Azure, John Gossman about how we view containers more broadly. Our Azure Container Service is our Microsoft Container Orchestration solution, offering Container as a Service (CaaS). We’ll be…

1

Creating Docker Hosts in Azure w/Docker-Machine 0.7.0

Last week, Docker released version 0.7.0 of Docker-Machine.  You can get the latest docker-machine with Docker Toolbox or Docker for Windows beta. Among many new features, Azure users will find the new Azure driver extremely helpful. In previous versions, developers would need to create management certs and upload them to Azure. Configure firewall ports manually, and the VM was created using the RDFE APIs…

0

Docker-Machine and Visual Studio Tools for Docker

If you’re using Docker Tools for Visual Studio, version 0.14 or later, you’ll notice that we depend on a docker-machine entry.  What exactly does that mean? Do I need docker-machine installed? Will this work with the Docker for Windows beta? We wanted the Docker Tools for Visual Studio to align with the Docker tools from Docker. It…

0

WhereYouAt BUILD 2016 Demo

Last week at build, Scott Hanselman and Scott Hunter presented an ASP.NET Core app we called Where You At. We were quite excited at the response and set of questions that arose. In response, we wanted to write a series of blog posts, each of us covering the different aspects of what we built, why…

1