Welcome to Docker’s .NET Conf challenge! This lab gets you using .NET Core in Docker containers. You’ll experience compiling code, packaging apps and running containers, using the latest .NET Core 3.0 release. Difficulty: Beginner (assumes no familiarity with Docker) Time: Approximately 5 minutes Tasks: Task 1: Grab the code Task 2: Build the application image Task 3: Run a .NET Core container! Task 1: Grab the code The Play-with-Docker environment is already set up with Docker and Git, s...| Play with Docker classroom
This lab walks through the evolution of a simple Node.js bulletin board application, running on Docker. You’ll start with a simple app that uses hard-coded data, then add SQL Server for persistent storage, and a proxy to improve web performance. You’ll learn about packaging applications in Docker images, running distributed applications across multiple containers, and adding instrumentation to your containers so you can see the health of your application. You’ll use the Docker command l...| Play with Docker classroom
Synchronous service create and service update A nice PATCH has been merged into Docker a few minutes ago that allows service creations and updated to be executed synchronously. Note: If you don’t see the progress bars in the terminal on the right, try resizing the pane to make the term bigger. Creating a synchronous service Initialize your swarm docker swarm init --advertise-addr eth1 Create a new synchronous serivce using the new -d flag docker service create -d=false --name top --replicas...| Play with Docker classroom
Let’s deploy the voting app stack on a swarm. Purpose The purpose of this lab is to illustrate how to deploy a stack (multi services application) against a Swarm using a docker compose file. The application The voting app is a very handy multi containers application often used for demo purposes during meetup and conferences. It basically allow users to vote between cat and dog (but could be “space” or “tab” too if you feel like it). This application is available on Github and update...| Play with Docker classroom
This tutorial will show you how to setup a swarm and deploy your first services. Init your swarm docker swarm init --advertise-addr $(hostname -i) Copy the join command (watch out for newlines) output and paste it in the other terminal. Show members of swarm Type the below command in the first terminal: docker node ls That last line will show you a list of all the nodes, something like this: ID HOSTNAME STATUS AVAILABILITY MANAGE R STATUS kytp4gq5mrvmdbb0qpifdxeiv * node1 Ready Active Leader ...| Play with Docker classroom
Start securing your swarm services using the latest compose reference that allows to specify secrets in your application stack Getting started Make sure your daemon is in swarm mode or initialize it as follows: docker swarm init --advertise-addr $(hostname -i) Automatic provision In this example we’ll let compose automatically create our secrets and provision them through compose with the defined secret file Create a new secret and store it in a file: echo "shh, this is a secret" > mysecret...| Play with Docker classroom
This tutorials showcases the config swarm feature that allow config objects to be attached to services. Config files can be mounted inside services’ containers, avoiding the need to bake configuration into images. Configuration files are similar to secrets, and in fact the CLI and API show few differences between the two. The principal differences so far are: Secrets are always redacted at the API level, so the payload cannot be obtained through an API call after they are created. Secrets a...| Play with Docker classroom
In this lab you will play around with the container orchestration features of Docker. You will deploy a simple application to a single host and learn how that works. Then, you will configure Docker Swarm Mode, and learn to deploy the same simple application across multiple hosts. You will then see how to scale the application and move the workload across different hosts easily. Difficulty: Beginner Time: Approximately 30 minutes Tasks: Section #1 - What is Orchestration Section #2 - Configure...| Play with Docker classroom
Multi-Container Applications This tutorial will walk you through using the sample Music Store application with Windows containers. The Music Store application is a standard .NET sample application, available in the aspnet GitHub repository. We’ve forked it to use Windows Containers. Using docker-compose on Windows Docker Compose is a great way develop complex multi-container consisting of databases, queues and web frontends. To develop with Docker Compose on a Windows Server 2016 system, in...| Play with Docker classroom
Docker Swarm est un outil d'orchestration de conteneurs. Il permet de gérer automatiquement vos conteneurs, et de les répliquer sur plusieurs machines.| Une tasse de café
Hitless TLS certificate rotation is critical to continue our quest of reducing certificate expiration times, while keeping our sanity intact.| Diogo Mónica