# Redhat docker image creation

**URL:** <https://discuss.elastic.co/t/redhat-docker-image-creation/140141>\
**Category:** Elasticsearch\
**Created:** [July 16, 2018, 11:33am UTC](https://discuss.elastic.co/t/redhat-docker-image-creation/140141 "2018-07-16T11:33:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [July 16, 2018, 11:33am UTC](https://discuss.elastic.co/t/redhat-docker-image-creation/140141/1 "2018-07-16T11:33:57Z")

</div>

I want to create a Redhat docker image.  
Elastic Search is basically trying to build a source on a feather, because it only provides a cent OS image.  
[https://www.elastic.co/guide/en/logstash/6.3/docker.html](https://www.elastic.co/guide/en/logstash/6.3/docker.html)

However, there were many difficulties.  
How did jinja2 solve it, but if you do "make" yet, the following error appears.

```
$ make
ln -sf docker-compose-full.yml docker-compose.yml
docker build -t golang:env2yaml build/golang
Sending build context to Docker daemon 3.072kB
Step 1/4 : FROM golang:1.8
 ---> 0d283eb41a92
Step 2/4 : RUN go get gopkg.in/yaml.v2
 ---> Running in dfd58d7e3796
package gopkg.in/yaml.v2: unrecognized import path "gopkg.in/yaml.v2" (https fetch: Get https://gopkg.in/yaml.v2?go-get=1: dial tcp 35.196.143.184:443: i/o timeout)
The command '/bin/sh -c go get gopkg.in/yaml.v2' returned a non-zero code: 1

```

Can you help me ??

---

<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:** [August 13, 2018, 11:34am UTC](https://discuss.elastic.co/t/redhat-docker-image-creation/140141/2 "2018-08-13T11:34:00Z")

</div>

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