Cover network configuration and reference the official openSUSE image
inside of the examples.
Docker-DCO-1.1-Signed-off-by: Flavio Castelli <fcastelli@suse.com> (github: flavio)
| ... | ... |
@@ -51,9 +51,23 @@ Docker daemon. You can add users with: |
| 51 | 51 |
|
| 52 | 52 |
To verify that everything has worked as expected: |
| 53 | 53 |
|
| 54 |
- $ sudo docker run --rm -i -t ubuntu /bin/bash |
|
| 54 |
+ $ sudo docker run --rm -i -t opensuse /bin/bash |
|
| 55 |
+ |
|
| 56 |
+This should download and import the `opensuse` image, and then start `bash` in |
|
| 57 |
+a container. To exit the container type `exit`. |
|
| 58 |
+ |
|
| 59 |
+If you want your containers to be able to access the external network you must |
|
| 60 |
+enable the `net.ipv4.ip_forward` rule. |
|
| 61 |
+This can be done using YaST by browsing to the |
|
| 62 |
+`Network Devices -> Network Settings -> Routing` menu and ensuring that the |
|
| 63 |
+`Enable IPv4 Forwarding` box is checked. |
|
| 64 |
+ |
|
| 65 |
+This option cannot be changed when networking is handled by the Network Manager. |
|
| 66 |
+In such cases the `/etc/sysconfig/SuSEfirewall2` file needs to be edited by |
|
| 67 |
+hand to ensure the `FW_ROUTE` flag is set to `yes` like so: |
|
| 68 |
+ |
|
| 69 |
+ FW_ROUTE="yes" |
|
| 55 | 70 |
|
| 56 |
-This should download and import the `ubuntu` image, and then start `bash` in a container. To exit the container type `exit`. |
|
| 57 | 71 |
|
| 58 | 72 |
**Done!** |
| 59 | 73 |
|