Skip to content

Starting docker without internet connection

The story is, that we want to present our minerva platform on a conference and don't want to rely on a internet connection that may be missing.

With a virtual machine we were not able to upload our project (due to its size i suppose) that's why we are using a docker image.

However, docoker-compose up will download the minerva.war from the internet. So I tried (with my limited knowledge) to make it completely offline:

  1. download the minerva.war file of the specific version
  2. In the docker-compose.yml file delete:
&& wget ${WAR_URL} --no-check-certificate -O /usr/local/tomcat/webapps/minerva.war
&& catalina.sh run
  1. To prevent the container from shutting down directly after startup i added:
&& tail -f /dev/null & wait
docker-compose up
  1. copy the minerva.war file to the docker container:
docker cp C:/minerva.war docker_minerva_1:/usr/local/tomcat/webapps/minerva.war
  1. And run
docker exec -it docker_minerva_1 catalina.sh run

Is there another (better) way to do it? (with less clicks)

And second question: Uploading our project (espacially generating the images) takes several hours. At some point the docker shuts down. Is there a way to keep it running?

Edited by Matti van Welzen