QuickStart - ewsdocker/debian-openjre GitHub Wiki

Quick Start ewsdocker/debian-openjre:9.5.7

The information on this page has been tailored to get the ewsdocker/debian-openjre container built as simply as possible.


What's new or changed in this version?

Version notes are available on the ewsdocker wiki at notes-debian-openjre.


Installing ewsdocker/debian-openjre

The following scripts will download the selected ewsdocker/debian-openjre image, create a container, setup and populate the directory structures, and create the run-time scripts.

The default values will install all directories and contents in the docker host user's home directory (refer to Mapping docker host resources to the docker container, below).


ewsdocker/debian-openjre:9.5.7

docker run --rm \
           -v ${HOME}/bin:/userbin \
           -v ${HOME}/.local:/usrlocal \
           -e LMS_BASE="${HOME}/.local" \
           -v ${HOME}/.config/docker:/conf \
           -v ${HOME}/.config/docker/debian-openjre-9.5.7:/root \
           --name=debian-openjre-9.5.7\
       ewsdocker/debian-openjre:9.5.7lms-setup  

ewsdocker/debian-openjre:9.5.7-gtk3

docker run --rm \
           -v ${HOME}/bin:/userbin \
           -v ${HOME}/.local:/usrlocal \
           -e LMS_BASE="${HOME}/.local" \
           -v ${HOME}/.config/docker:/conf \
           -v ${HOME}/.config/docker/debian-openjre-9.5.7-gtk3:/root \
           --name=debian-openjre-9.5.7-gtk3\
       ewsdocker/debian-openjre:9.5.7-gtk3 lms-setup  

ewsdocker/debian-openjre:9.5.7-jre-8

docker run --rm \
           -v ${HOME}/bin:/userbin \
           -v ${HOME}/.local:/usrlocal \
           -e LMS_BASE="${HOME}/.local" \
           -v ${HOME}/.config/docker:/conf \
           -v ${HOME}/.config/docker/debian-openjre-9.5.7-jre-8:/root \
           --name=debian-openjre-9.5.7-jre-8\
       ewsdocker/debian-openjre:9.5.7-jre-8 lms-setup  

Running the installed scripts

After running the above command script, and using the settings indicated, the docker host directories, mapped as shown in the above tables, will be configured as follows:

  • the executable scripts have been copied to ~/bin;
  • the associated debian-openjre-"version" executable script (shown below) will be found in ~/.local/bin, and should be customized with proper local volume names;

Execution scripts

ewsdocker/debian-openjre:9.5.7

docker run -it \
           --rm \
           -v /etc/localtime:/etc/localtime:ro \
           -v ${HOME}/workspace-openjre-9.5.7:/workspace \
           -v ${HOME}/.config/docker/debian-openjre-9.5.7:/root \
           --name=debian-openjre-9.5.7\
       ewsdocker/debian-openjre:9.5.7

ewsdocker/debian-openjre:9.5.7-gtk3

docker run -it \
           --rm \
           -v /etc/localtime:/etc/localtime:ro \
           -v ${HOME}/workspace-openjre-9.5.7-gtk3:/workspace \
           -v ${HOME}/.config/docker/debian-openjre-9.5.7-gtk3:/root \
           --name=debian-openjre-9.5.7-gtk3\
       ewsdocker/debian-openjre:9.5.7-gtk3

ewsdocker/debian-openjre:9.5.7-jre-8

docker run -it \
           --rm \
           -v /etc/localtime:/etc/localtime:ro \
           -v ${HOME}/workspace-openjre-9.5.7-jre-8:/workspace \
           -v ${HOME}/.config/docker/debian-openjre-9.5.7-jre-8:/root \
           --name=debian-openjre-9.5.7-jre-8\
       ewsdocker/debian-openjre:9.5.7-jre-8

Refer to the Command-line Interface Wiki page for details about how to connect to this container.


Simple tests

Test 1

Copy the docker command above (Creating a container) and paste it into a docker host command line to create a temporary docker container named debian-openjre-9.5.7. At the bash prompt (#), enter the following command:

apt-get update
apt-get install mousepad  
/usr/bin/mousepad  

A graphical dialog should appear containing the mousepad editor main window. Exit the mousepad program, then exit the container (exit 2 times).

Test 2

Add a new volume to the command above, mapping a local folder container text documents (e.g., $HOME/Documents) to an arbitrary folder in the container (e.g., /documents):

-v ${HOME}/Documents:/documents  

Perform the steps in Test 1 to open the mousepad application. Using the mousepad file manager, browse to the new folder (/documents) and open a text document there.


Home  <==  BACK      |      NEXT  ==> Command-line Interface