Quick hdf format viewer docker. I mainly did this to avoid installing old dependencies for HDF4 support.
You can either keep a daemonized docker and keep the hdf files inside the container or you can pass a data volume redirecting to that same content without risking losing all when the docker stops (recommended).
The following is a sample command I would use to run Hdfview with a data volume on a Ubuntu 16.04 host:
$ docker run --rm \ -e DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /home/user/data:/data \ crsilva/hdfview:latest
FROM ubuntu:latest MAINTAINER Cristobal Silva <firstname.lastname@example.org> RUN apt-get update && \ apt-get install -y hdfview && \ rm -rf /var/lib/apt/lists/* CMD ["/usr/bin/hdfview"]