Skip to content

Commit cc26000

Browse files
committed
finished adding content and acrolinx fixes
1 parent 39e9177 commit cc26000

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

articles/virtual-network/deploy-container-networking-docker-linux.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ It can take a few minutes for the Bastion host to deploy. You can continue with
7474

7575
## Create virtual machine
7676

77-
In this section, you'll create a Ubuntu virtual machine for the stand-alone Docker host. Ubuntu is used for the example in this article. The CNI plug-in supports Windows and other Linux distributions.
77+
In this section, you'll create an Ubuntu virtual machine for the stand-alone Docker host. Ubuntu is used for the example in this article. The CNI plug-in supports Windows and other Linux distributions.
7878

7979
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
8080

@@ -100,7 +100,7 @@ In this section, you'll create a Ubuntu virtual machine for the stand-alone Dock
100100
| Authentication type | Select **Password**. |
101101
| Username | Enter a username. |
102102
| Password | Enter a password. |
103-
| Confirm password | Re-enter password. |
103+
| Confirm password | Reenter password. |
104104
| **Inbound port rules** | |
105105
| Public inbound ports | Select **None**. |
106106

@@ -121,17 +121,17 @@ In this section, you'll create a Ubuntu virtual machine for the stand-alone Dock
121121

122122
## Add IP configuration
123123

124-
The Azure CNI plugin allocates IP addresses to containers based on a pool of IP addresses you create on the virtual network interface of the virtual machine. For every container on the host, a IP configuration must exist on the virtual network interface. If the number of containers on the server outnumber the IP configurations on the virtual network interface, the container will start but won't have an IP address.
124+
The Azure CNI plugin allocates IP addresses to containers based on a pool of IP addresses you create on the virtual network interface of the virtual machine. For every container on the host, an IP configuration must exist on the virtual network interface. If the number of containers on the server outnumber the IP configurations on the virtual network interface, the container will start but won't have an IP address.
125125

126-
In this section you'll add an IP configuration to the virtual network interface of the virtual machine you created previously.
126+
In this section, you'll add an IP configuration to the virtual network interface of the virtual machine you created previously.
127127

128128
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
129129

130130
2. Select **myVM**.
131131

132132
3. In **Settings**, select **Networking**.
133133

134-
4. Select the name of the network interface next to **Network Interface:**. The network interface is named **myvm** with a random number. In this example it's **myvm27**.
134+
4. Select the name of the network interface next to **Network Interface:**. The network interface is named **myvm** with a random number. In this example, it's **myvm27**.
135135

136136
5. In **Settings** of the network interface, select **IP configurations**.
137137

@@ -164,15 +164,15 @@ Repeat steps 1 through 13 to add as many configurations as containers you wish t
164164

165165
The Docker container engine must be installed and configured on the virtual machine you created previously.
166166

167-
For install instructions for Docker on a Ubuntu container host, see [Install Docker Engine on Ubuntu](https://docs.docker.com/engine/install/ubuntu/).
167+
For install instructions for Docker on an Ubuntu container host, see [Install Docker Engine on Ubuntu](https://docs.docker.com/engine/install/ubuntu/).
168168

169169
After Docker is installed on the virtual machine, follow the instructions for the Linux post install. For instructions on the Linux post install, see [Docker Engine post-installation steps](https://docs.docker.com/engine/install/linux-postinstall/).
170170

171171
After Docker is installed on your virtual machine, continue with the steps in this article.
172172

173-
## Install CNI plugin
173+
## Install CNI plugin and create a test container
174174

175-
The Azure CNI plugin is maintained as a Github project and is available for download from the project's Github page. For the purpose of this article, we will use **`git`** within the virtual machine to clone the repository for the plugin and then install and configure the plugin.
175+
The Azure CNI plugin is maintained as a GitHub project and is available for download from the project's GitHub page. For this article, you'll use **`git`** within the virtual machine to clone the repository for the plugin and then install and configure the plugin.
176176

177177
For more information about the Azure CNI plugin, see [Microsoft Azure Container Networking](https://github.com/Azure/azure-container-networking).
178178

@@ -201,19 +201,20 @@ For more information about the Azure CNI plugin, see [Microsoft Azure Container
201201
8. Configure permissions and install the CNI plugin. The install script command requires a version number for the CNI plugin. At the time of the writing of this article, the newest version is **`v1.4.39`**. To obtain the latest version number of the plugin or previous versions, see [Releases](https://github.com/Azure/azure-container-networking/releases).
202202
203203
```bash
204+
cd azure-container-networking
204205
cd scripts
205206
chmod u+x install-cni-plugin.sh
206207
sudo ./install-cni-plugin.sh v1.4.39
207208
chmod u+x docker-run.sh
208209
```
209210
210-
9. To start a container with the CNI plugin, you must use a special script that comes with the plugin to create and start the container. The following example will create an Ubuntu container with the CNI plugin script:
211+
9. To start a container with the CNI plugin, you must use a special script that comes with the plugin to create and start the container. The following example will create an Alpine container with the CNI plugin script:
211212
212213
```bash
213-
sudo ./docker-run.sh vnetdocker1 default ubuntu
214+
sudo ./docker-run.sh vnetdocker1 default alpine
214215
```
215216
216-
10. To verify that the container received the IP address you previously configured for the network interface, you'll connect to the container and view the IP:
217+
10. To verify that the container received the IP address you previously configured, connect to the container and view the IP:
217218
218219
```bash
219220
sudo docker exec -it vnetdocker1 /bin/sh
@@ -223,13 +224,12 @@ For more information about the Azure CNI plugin, see [Microsoft Azure Container
223224
224225
```bash
225226
ifconfig
226-
227227
```
228-
## Create test container
228+
:::image type="content" source="./media/deploy-container-networking-docker-linux/ifconfig-output.png" alt-text="Screenshot of ifconfig output in Bash prompt of test container.":::
229229
230230
## Clean up resources
231231
232-
If you're not going to continue to use this application, delete the virtual network, DDoS protection plan, and Route Server with the following steps:
232+
If you're not going to continue to use this application, delete the virtual network and virtual machine with the following steps:
233233

234234
1. In the search box at the top of the portal, enter **Resource group**. Select **Resource groups** in the search results.
235235

@@ -241,13 +241,12 @@ If you're not going to continue to use this application, delete the virtual netw
241241

242242
5. Select **Delete**.
243243

244-
245244
## Next steps
246-
<!-- Add a context sentence for the following links -->
247-
- [Write how-to guides](contribute-how-to-write-howto.md)
248-
- [Links](links-how-to.md)
249-
250-
<!--
251-
Remove all the comments in this template before you sign-off or merge to the
252-
main branch.
253-
-->
245+
246+
In this article, you learned how to install the Azure CNI plugin and create a test container.
247+
248+
For more information about Azure container networking and Azure Kubernetes service, see:
249+
250+
- [Deploy the Azure Virtual Network container network interface plug-in](deploy-container-networking.md)
251+
252+
- [What is Azure Kubernetes Service?](/azure/aks/intro-kubernetes)
210 KB
Loading

0 commit comments

Comments
 (0)