# KNIME in docker?

**URL:** <https://forum.knime.com/t/knime-in-docker/7210>\
**Category:** KNIME Analytics Platform\
**Created:** [January 6, 2015, 6:01pm UTC](https://forum.knime.com/t/knime-in-docker/7210 "2015-01-06T18:01:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [January 6, 2015, 6:01pm UTC](https://forum.knime.com/t/knime-in-docker/7210/1 "2015-01-06T18:01:47Z")

</div>

Hi all,

Do you have a docker image containing KNIME Analytics Platform? (Preferably with an option to connect to it with ssh -X or vnc, so to use it with GUI.) I would like to introduce KNIME in a meetup and would be nice to share with them an easy to use, preset solution (like the webkit preinstalled, R with the correct version etc).

Thanks, gabor

---

<div class="post-metadata">

**Author:** ![Aaron\_Hart](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aaron_hart/32/7814_2.png) [@Aaron\_Hart](https://forum.knime.com/u/Aaron_Hart)\
**Post date:** [January 7, 2015, 7:06pm UTC](https://forum.knime.com/t/knime-in-docker/7210/2 "2015-01-07T19:06:24Z")

</div>

I am not aware of anything, but what we do internally is use the pre-packaged monolithic distributions from our download site, and burn these to a USB stick along with a zipped workspace tailored to the course. If you end up with a docker image though, do post back here as that sounds interesting...

Cheers, Aaron

&nbsp;

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [January 8, 2015, 4:07pm UTC](https://forum.knime.com/t/knime-in-docker/7210/3 "2015-01-08T16:07:29Z")

</div>

Hi Aaron,

I have created a [really prototypical image](https://registry.hub.docker.com/u/aborg0/docker_experimentes_knime/). I would not see it as a huge success, from (HTML5) VNC it is not so nice, the UI practically unusable (though visible). Probably I'll try something more stripped down as this is currently -unnecessarily- very large. Anyway if someone would like to experiment with docker and KNIME, this might be a good starting point towards that (apt-get install from it though is a bit slow from Europe, as the base image set the source list to tw (Taiwan) mirror.) Probably with SSH one might get a better user experience.

If someone with docker experience can create a good (public) dockerfile with KNIME, please keep me posted.

Thanks, gabor

---

<div class="post-metadata">

**Author:** ![bmuchmore](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bmuchmore](https://forum.knime.com/u/bmuchmore)\
**Post date:** [July 22, 2015, 4:13pm UTC](https://forum.knime.com/t/knime-in-docker/7210/4 "2015-07-22T16:13:12Z")

</div>

Gabor, have you looked into this further?&nbsp; It is a good idea.

-Brian Muchmore

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [July 22, 2015, 6:56pm UTC](https://forum.knime.com/t/knime-in-docker/7210/5 "2015-07-22T18:56:03Z")

</div>

No, unfortunately I had no time for that (and I am not planning to present KNIME in the near future, so less motivation). I think it would be nice to have a simple way to set up an environment for repeatable analysis, that is why I started it, but had some problems with the UI (I guess it were easier to set up a KNIME server if it were free), that seemed not trivial to solve. Maybe just a different base were fix it, but currently I am working on other things.

---

<div class="post-metadata">

**Author:** ![bmuchmore](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bmuchmore](https://forum.knime.com/u/bmuchmore)\
**Post date:** [July 23, 2015, 4:30pm UTC](https://forum.knime.com/t/knime-in-docker/7210/6 "2015-07-23T16:30:24Z")

</div>

Aaron,

How do I download KNIME using wget or curl?&nbsp; I ask because I am trying to make a Dockerfile for KNIME.

-Brian

---

<div class="post-metadata">

**Author:** ![aborg](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@aborg](https://forum.knime.com/u/aborg)\
**Post date:** [July 23, 2015, 10:35pm UTC](https://forum.knime.com/t/knime-in-docker/7210/7 "2015-07-23T22:35:29Z")

</div>

Brian,

I would use the following link: https://www.knime.org/knime\_downloads/linux/knime-full-latest-linux.gtk.x86\_64.tar.gz (which includes all free extensions) or&nbsp;http://www.knime.org/knime\_downloads/linux/knime-latest-linux.gtk.x86\_64.tar.gz (only KNIME without extensions) with this md5 sum: https://www.knime.org/knime\_downloads/linux/knime-full-latest-linux.gtk.x86\_64.tar.gz.md5 or with this: http://www.knime.org/knime\_downloads/linux/knime-latest-linux.gtk.x86\_64.tar.gz.md5

I hope this will not change with the release of 2.12.

Thanks, gabor

PS.: There might be better links. In case this deep linking is not suggested, I apologise. Probably there is a link which does not contain a JRE, though in case a JRE was not installed in the Dockerfile, this might be a useful feature.

---

<div class="post-metadata">

**Author:** ![bmuchmore](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bmuchmore](https://forum.knime.com/u/bmuchmore)\
**Post date:** [July 24, 2015, 5:45pm UTC](https://forum.knime.com/t/knime-in-docker/7210/8 "2015-07-24T17:45:58Z")

</div>

Thanks, Gabor, that is what I needed.&nbsp; I will respond back when/if I get something working.&nbsp; I know it is possible, but I am new to Docker, so it will take me time to get it right.

-Brian

---

<div class="post-metadata">

**Author:** ![bmuchmore](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bmuchmore](https://forum.knime.com/u/bmuchmore)\
**Post date:** [July 26, 2015, 3:16pm UTC](https://forum.knime.com/t/knime-in-docker/7210/9 "2015-07-26T15:16:39Z")

</div>

I have KNIME running inside a docker container by sharing the x11 socket with the local ubuntu installation (I used parts of this to get it working https://github.com/fgrehm/docker-eclipse/blob/master/Dockerfile).&nbsp; It seems to work well, and with some extra packages this should work on Mac and Windows as well.&nbsp;

```
fontconfig-infinality
```

```
fontconfig-infinality
```

But, when I double click into a node, the fonts look terrible.&nbsp; Only the node fonts look bad.&nbsp; Does anyone have any suggestions?&nbsp; I have tried installing various font packages (e.g. xfonts-75dpi, xfonts-100dpi, cairo etc), but that has not fixed the problem.

-Brian

---

<div class="post-metadata">

**Author:** ![kajocina](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/958977/32.png) [@kajocina](https://forum.knime.com/u/kajocina)\
**Post date:** [September 7, 2015, 11:15am UTC](https://forum.knime.com/t/knime-in-docker/7210/10 "2015-09-07T11:15:11Z")

</div>

bmuchmore: Hello, could you perhaps share the Dockerfile you used to build your KNIME-in-docker ? I am trying to add KNIME as a dependency to my docker image (trying to link KNIME with galaxy, an experiment let's say) so I would love to avoid some beginner's mistakes. I am new to docker concept, though I already like it a lot.

&nbsp;

Thanks!

Piotr

---

<div class="post-metadata">

**Author:** ![bmuchmore](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bmuchmore](https://forum.knime.com/u/bmuchmore)\
**Post date:** [September 7, 2015, 8:10pm UTC](https://forum.knime.com/t/knime-in-docker/7210/11 "2015-09-07T20:10:25Z")

</div>

Yes, I would be happy to, but it will take me a day or two. &nbsp;If it is longer than that though, please feel free to remind me because I may forget.

-Brian

---

<div class="post-metadata">

**Author:** ![bmuchmore](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bmuchmore](https://forum.knime.com/u/bmuchmore)\
**Post date:** [September 9, 2015, 5:49pm UTC](https://forum.knime.com/t/knime-in-docker/7210/12 "2015-09-09T17:49:51Z")

</div>

OK, the below dockerfile should work and automatically set-up R and Python.&nbsp; I have not tested this specific version, so just send me the error message if it fails, and I will fix it.&nbsp; But, I think it will work.&nbsp; I have only tested this on Ubuntu.&nbsp; With some tweaks this could probably work on Mac.&nbsp; This will not work on Windows. Feel free to ask any questions.

&nbsp;

FROM ubuntu:12.04  
MAINTAINER Brian Muchmore "brian.muchmore@genyo.es"

ENV DEBIAN\_FRONTEND noninteractive  
ENV DEBCONF\_NONINTERACTIVE\_SEEN true

##Install Java7  
RUN apt-get update -y && \  
&nbsp;&nbsp;&nbsp; mkdir -p /home/developer && \  
&nbsp;&nbsp;&nbsp; apt-get install wget -y && \  
&nbsp;&nbsp;&nbsp; apt-get install unzip -y && \  
&nbsp;&nbsp;&nbsp; apt-get install libgd2-xpm-dev -y && \  
&nbsp;&nbsp;&nbsp; apt-get install libpcre++-dev -y && \  
&nbsp;&nbsp;&nbsp; apt-get install python-software-properties -y && \  
&nbsp;&nbsp;&nbsp; add-apt-repository ppa:webupd8team/java && \  
&nbsp;&nbsp;&nbsp; apt-get update -y && \  
&nbsp;&nbsp;&nbsp; echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \  
&nbsp;&nbsp;&nbsp; apt-get install oracle-java7-installer libxext-dev libxrender-dev libxtst-dev -y && \  
&nbsp;&nbsp;&nbsp; apt-get install liblzma-dev -y && \  
&nbsp;&nbsp;&nbsp; apt-get install libglu1-mesa-dev -y && \

##Get Python working with KNIME. This installs R, so it must be run before the R version you want installed systemwide.  
&nbsp;&nbsp;&nbsp; apt-get install python-numpy python-pandas python-protobuf -y && \

##Install R (from source due to no Xserver) with Atlas (OpenBLAS doesn't seem to play nice with library(parallel)) and many downstream dependencies  
&nbsp;&nbsp;&nbsp; apt-get install curl libcurl4-openssl-dev build-essential libreadline6 libreadline6-dev libcairo2-dev libpango1.0-dev xorg-dev tk8.5 -y && \  
&nbsp;&nbsp;&nbsp; apt-get install gcc make gfortran g++ tk tk-dev tcl tcl-dev libcairo2 libjpeg8 libtiff4 libxml2-dev liblz-dev libicu-dev libicu48 libssh2-1 -y && \  
&nbsp;&nbsp;&nbsp; apt-get install libhdf5-serial-dev liblz1 libtiff4-dev libtiff-tools libtiffxx0c2 libtiff-opengl libghc-bzlib-dev libgtk2.0-dev libghc-bzlib-dev -y && \  
&nbsp;&nbsp;&nbsp; wget https://cran.r-project.org/src/base/R-3/R-3.2.1.tar.gz --no-check-certificate -O /tmp/R.tar.gz -q && \  
&nbsp;&nbsp;&nbsp; tar -xf /tmp/R.tar.gz -C /home/developer && \  
&nbsp;&nbsp;&nbsp; rm /tmp/R.tar.gz && \  
&nbsp;&nbsp;&nbsp; cd /home/developer/R-3.2.1 && \  
&nbsp;&nbsp;&nbsp; ./configure --with-recommended-packages=no --without-x --with-tcltk --with-aqua --with-ICU --with-cairo --with-libpng --with-libtiff --with-jpeglib --enable-R-shlib --enable-BLAS-shlib --enable-memory-profiling && \ &nbsp;  
&nbsp;&nbsp;&nbsp; make && \  
&nbsp;&nbsp;&nbsp; make check && \  
&nbsp;&nbsp;&nbsp; make install && \  
&nbsp;&nbsp;&nbsp; apt-get install libatlas3gf-base liblapack3gf -y && \

##Download KNIME and get the KNIME browser working  
&nbsp;&nbsp;&nbsp; wget http://www.knime.org/knime\_downloads/linux/knime-latest-linux.gtk.x86\_64.tar.gz -O /tmp/knime.tar.gz -q && \  
&nbsp;&nbsp;&nbsp; echo 'Installing knime' && \  
&nbsp;&nbsp;&nbsp; tar -xf /tmp/knime.tar.gz -C /home/developer && \  
&nbsp;&nbsp;&nbsp; rm /tmp/knime.tar.gz && \  
&nbsp;&nbsp;&nbsp; apt-get install libwebkitgtk-1.0-0 -y && \

##Install whatever KNIME extensions you want. The below is just used as an example and installs Python and R nodes.  
&nbsp;&nbsp;&nbsp; cd /home/developer/knime\_2.12.0 && \  
&nbsp;&nbsp;&nbsp; ./knime -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository http://update.knime.org/analytics-platform/2.12 -installIUs org.knime.python.nodes -installIUs org.knime.features.r.feature.group -vmargs -Declipse.p2.mirrors=true -Djava.net.preferIPv4Stack=true && \

##Get the correct verion of R working with KNIME and put KNIME in expert mode.  
&nbsp;&nbsp;&nbsp; R CMD javareconf && \  
&nbsp;&nbsp;&nbsp; echo '/usr/local/lib/R/lib/' \> /etc/ld.so.conf.d/libR.conf && \  
&nbsp;&nbsp;&nbsp; ldconfig && \  
&nbsp;&nbsp;&nbsp; echo '-Djava.library.path=/usr/local/lib/R/library/jri/' \>\> /home/developer/knime\_2.12.0/knime.ini && \  
&nbsp;&nbsp;&nbsp; echo '-Dknime.expert.mode=true' \>\> /home/developer/knime\_2.12.0/knime.ini && \  
&nbsp;&nbsp;&nbsp; echo 'chooseCRANmirror(ind=73)' \> /home/developer/packages.R && \  
&nbsp;&nbsp;&nbsp; echo 'install.packages("rJava")' \>\> /home/developer/packages.R && \  
&nbsp;&nbsp;&nbsp; Rscript /home/developer/packages.R && \

##Set up user priviliges and share X11 socket  
&nbsp;&nbsp;&nbsp; apt-get install sudo -y && \  
&nbsp;&nbsp;&nbsp; mkdir -p /etc/sudoers.d && \  
&nbsp;&nbsp;&nbsp; chmod +x /home/developer/knime\_2.12.0 && \  
&nbsp;&nbsp;&nbsp; echo "developer:x:1000:1000:Developer,,,:/home/developer:/bin/bash" \>\> /etc/passwd && \  
&nbsp;&nbsp;&nbsp; echo "developer:x:1000:" \>\> /etc/group && \  
&nbsp;&nbsp;&nbsp; echo "developer ALL=(ALL) NOPASSWD: ALL" \> /etc/sudoers.d/developer && \  
&nbsp;&nbsp;&nbsp; chmod 0440 /etc/sudoers.d/developer && \  
&nbsp;&nbsp;&nbsp; chown developer:developer -R /home/developer && \  
&nbsp;&nbsp;&nbsp; chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo

USER developer  
ENV HOME /home/developer  
WORKDIR /home/developer  
CMD /home/developer/knime\_2.12.0/knime -data /home/developer/knime-workspace

&nbsp;

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [September 1, 2020, 1:59pm UTC](https://forum.knime.com/t/knime-in-docker/7210/13 "2020-09-01T13:59:35Z")

</div>

Split this topic on September 1, 2020, 1:59pm UTC

A post was split to a new topic: [Run KNIME from a docker](https://forum.knime.com/t/run-knime-from-a-docker/26442)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [September 1, 2020, 1:59pm UTC](https://forum.knime.com/t/knime-in-docker/7210/14 "2020-09-01T13:59:42Z")

</div>

Closed on September 1, 2020, 1:59pm UTC


