You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/deploy-container-networking-docker-linux.md
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ It can take a few minutes for the Bastion host to deploy. You can continue with
74
74
75
75
## Create virtual machine
76
76
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.
78
78
79
79
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
80
80
@@ -100,7 +100,7 @@ In this section, you'll create a Ubuntu virtual machine for the stand-alone Dock
100
100
| Authentication type | Select **Password**. |
101
101
| Username | Enter a username. |
102
102
| Password | Enter a password. |
103
-
| Confirm password |Re-enter password. |
103
+
| Confirm password |Reenter password. |
104
104
|**Inbound port rules**||
105
105
| Public inbound ports | Select **None**. |
106
106
@@ -121,17 +121,17 @@ In this section, you'll create a Ubuntu virtual machine for the stand-alone Dock
121
121
122
122
## Add IP configuration
123
123
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.
125
125
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.
127
127
128
128
1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results.
129
129
130
130
2. Select **myVM**.
131
131
132
132
3. In **Settings**, select **Networking**.
133
133
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**.
135
135
136
136
5. In **Settings** of the network interface, select **IP configurations**.
137
137
@@ -164,15 +164,15 @@ Repeat steps 1 through 13 to add as many configurations as containers you wish t
164
164
165
165
The Docker container engine must be installed and configured on the virtual machine you created previously.
166
166
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/).
168
168
169
169
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/).
170
170
171
171
After Docker is installed on your virtual machine, continue with the steps in this article.
172
172
173
-
## Install CNI plugin
173
+
## Install CNI plugin and create a test container
174
174
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.
176
176
177
177
For more information about the Azure CNI plugin, see [Microsoft Azure Container Networking](https://github.com/Azure/azure-container-networking).
178
178
@@ -201,19 +201,20 @@ For more information about the Azure CNI plugin, see [Microsoft Azure Container
201
201
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).
202
202
203
203
```bash
204
+
cd azure-container-networking
204
205
cd scripts
205
206
chmod u+x install-cni-plugin.sh
206
207
sudo ./install-cni-plugin.sh v1.4.39
207
208
chmod u+x docker-run.sh
208
209
```
209
210
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:
211
212
212
213
```bash
213
-
sudo ./docker-run.sh vnetdocker1 default ubuntu
214
+
sudo ./docker-run.sh vnetdocker1 default alpine
214
215
```
215
216
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:
217
218
218
219
```bash
219
220
sudo docker exec -it vnetdocker1 /bin/sh
@@ -223,13 +224,12 @@ For more information about the Azure CNI plugin, see [Microsoft Azure Container
223
224
224
225
```bash
225
226
ifconfig
226
-
227
227
```
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.":::
229
229
230
230
## Clean up resources
231
231
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 networkand virtual machine with the following steps:
233
233
234
234
1. In the search box at the top of the portal, enter **Resource group**. Select **Resource groups**in the search results.
235
235
@@ -241,13 +241,12 @@ If you're not going to continue to use this application, delete the virtual netw
241
241
242
242
5. Select **Delete**.
243
243
244
-
245
244
## Next steps
246
-
<!-- Add a context sentence for the following links -->
0 commit comments