# Fail to run metricbeat container without internet connection

**URL:** <https://discuss.elastic.co/t/fail-to-run-metricbeat-container-without-internet-connection/82857>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 19, 2017, 9:41am UTC](https://discuss.elastic.co/t/fail-to-run-metricbeat-container-without-internet-connection/82857 "2017-04-19T09:41:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [April 19, 2017, 9:41am UTC](https://discuss.elastic.co/t/fail-to-run-metricbeat-container-without-internet-connection/82857/1 "2017-04-19T09:41:59Z")

</div>

Hi,

It looks like metricbeat is trying to download dashboards every time the docker container start.  
This fails when there is no internet connection.

> docker logs metricbeat  
> curl: (3) [globbing] nested brace in column 9  
> Create temporary directory /tmp/tmp774180438  
> Downloading [https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip](https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip)  
> fail to download file: [https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip](https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-5.2.2.zip)

Is it possible to install the dashboards from dockerfile?  
Are the dashboards available as textfile.  
The import\_dashboards command is binary and I can not modyfy it.

You can simulate this by using add-host parameter when you start your docker.

docker run .......................... --add-host artifacts.elastic.co:127.0.0.1 metricbeat

---

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [April 19, 2017, 7:28pm UTC](https://discuss.elastic.co/t/fail-to-run-metricbeat-container-without-internet-connection/82857/2 "2017-04-19T19:28:46Z")

</div>

> [@mathias](#):
>
> --add-host artifacts.elastic.co:127.0.0.1

Yiiiha,

Problem solved by reading the command help.

With -file option is it possible to load a local .zip file instead of downloading.

Br Mathias

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 17, 2017, 7:39pm UTC](https://discuss.elastic.co/t/fail-to-run-metricbeat-container-without-internet-connection/82857/3 "2017-05-17T19:39:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
