Update instructions for mtu flag for Docker on GCE
| ... | ... |
@@ -57,12 +57,13 @@ |
| 57 | 57 |
docker-playground:~$ curl get.docker.io | bash |
| 58 | 58 |
docker-playground:~$ sudo update-rc.d docker defaults |
| 59 | 59 |
|
| 60 |
-7. If running in zones: us-central1-a, europe-west1-1, and europe-west1-b, the docker daemon must be started with the `-mtu` flag. Without the flag, you may experience intermittent network pauses. |
|
| 60 |
+7. If running in zones: ``us-central1-a``, ``europe-west1-1``, and ``europe-west1-b``, the docker daemon must be started with the ``-mtu`` flag. Without the flag, you may experience intermittent network pauses. |
|
| 61 | 61 |
`See this issue <https://code.google.com/p/google-compute-engine/issues/detail?id=57>`_ for more details. |
| 62 | 62 |
|
| 63 | 63 |
.. code-block:: bash |
| 64 | 64 |
|
| 65 |
- docker -d -mtu 1460 |
|
| 65 |
+ docker-playground:~$ echo "DOCKER_OPTS="$DOCKER_OPTS -mtu 1460" | sudo tee -a /etc/defaults/docker |
|
| 66 |
+ docker-playground:~$ sudo service docker restart |
|
| 66 | 67 |
|
| 67 | 68 |
8. Start a new container: |
| 68 | 69 |
|