> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/no-connectivity-to-docker-containers-within-instance.md).

# No Connectivity to Docker Containers Within Instance

## Problem

A virtual machine instance, running the Docker daemon, has containers which cannot communicate externally nor be reached (on their exposed ports – if any) despite such traffic being allowed within the associated security group or firewall of the network.

**Example**

{% tabs %}
{% tab title="None" %}

```none
Unable to find image 'jekyll/jekyll:3.8' locally3.8: Pulling from jekyll/jekyll9d48c3bd43c5: Pull complete9ce9598067e7: Pull complete278f4c997324: Pull completebfca09e5fd9a: Pull complete2612f15b9d22: Pull complete{322c093d5418: Pull completeDigest: sha256:9521c8aae4739fcbc7137ead19f91841b833d671542f13e91ca40280e88d6e34Status: Downloaded newer image for jekyll/jekyll:3.8Fetching gem metadata from http://rubygems.org/.Retrying dependency api due to error (2/4): Bundler::HTTPError Network error while fetching https://index.rubygems.org/api/v1/dependencies?gems=[...] (Net::OpenTimeout)
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Neutron
* OVS
* Docker

## Cause

The Docker daemon is not aware of and does not account for the VXLAN packet encapsulation overhead which is present on an OpenStack network with OVS. As such, the bridge interface, used for Docker containers within the VM, is created with a default MTU of 1500 – resulting in any incoming and outgoing packets to be dropped once outside of the VM since they are over the MTU size of the external interface (with the added overhead).

## Resolution

1. Modify (or create – if it does not exist) the Docker daemon configuration file at ***/etc/docker/daemon.json*** and explicitly set the correct MTU size (accounting for the packet overhead).

{% tabs %}
{% tab title="None" %}

```none
{ "mtu": 1450}
```

{% endtab %}
{% endtabs %}

**Note**: The MTU will vary depending on whether [jumbo frames](https://docs.openstack.org/neutron/pike/admin/config-mtu.html#jumbo-frames) are configured for your environment. If jumbo frames *are* enabled, you will need to set an MTU of **8950**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmo/solution/no-connectivity-to-docker-containers-within-instance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
