Working with Docker tasks
For cloud-native applications, you need to use Docker commands to build and deploy cloud-native applications. There are many predefined tasks for building cloud-native applications in an Azure pipeline. You can perform the following steps to create a pipeline using Docker tasks:
- Follow steps 1 to 4 as described in the previous section for .NET Core CLI tasks.
- Rename the file for the Docker pipeline:
Figure 5.14 – Renaming the file
- Select the Docker CLI installer task, click on Add, and update
DockerInstaller@0
:- task: DockerInstaller@0 inputs: dockerVersion: '17.09.0-ce'
The following screenshot shows you how to add a Docker CLI installer task and fill in the details on this task:
Figure 5.15 – Adding a Docker CLI installer task
- Select the Docker task and click on Add, and you will see the following code. This...