This answer is for others who are looking for a complete answer that worked for me. This is all thanks to Dmitry and Rich. I hope this helps someone else when they are searching the forums. My host machine is Windows 10 1809. My docker version is 2.0.0.3.

I had to use both ccontainermain and the ccontrol-wrapper.sh. My final dockerfile that is working successfully is:

FROM centos:latest

 

ENV TMP_INSTALL_DIR=/tmp/distrib

ENV ISC_PACKAGE_INSTANCENAME="CACHE"

ENV ISC_PACKAGE_INSTALLDIR="/usr/cachesys"

ENV ISC_PACKAGE_UNICODE="Y"

ENV ISC_PACKAGE_INITIAL_SECURITY="Minimal"

ENV ISC_PACKAGE_CLIENT_COMPONENTS=""

 

RUN mkdir ${TMP_INSTALL_DIR}

WORKDIR ${TMP_INSTALL_DIR}

 

RUN yum -y update && \

yum -y install tar gzip which java-1.8.0-openjdk

 

ADD cache-2017.1.3.317.0.18571-lnxrhx64.tar.gz .

RUN ./cache-2017.1.3.317.0.18571-lnxrhx64/cinstall_silent && rm -rf /tmp/distrib && ccontrol stop cache quietly

 

COPY ccontrol-wrapper.sh /usr/bin/

RUN cd /usr/bin && \

rm ccontrol && \

mv ccontrol-wrapper.sh ccontrol && \

chmod 555 ccontrol

 

WORKDIR /

ADD ccontainermain .

 

EXPOSE 57772 22 1972

 

ENTRYPOINT ["/ccontainermain", "-i", "CACHE"]

Unless I misunderstood something, you said there is no storage driver for windows that can work with cache in a docker image. What are the issues with it, and how to get around it? Still trying to figure out the gzip issue I am having (first time ever getting something like this when gzip is already in the image).

I would love to use Docker. Thanks for your time.