CommandLineInterface - ewsdocker/debian-openjre GitHub Wiki

Command-line Interface

Setting the Command-line Interface


ewsdocker/debian-openjre-9.5.7

Download and install the ewsdocker/debian-openjre image:

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.7 lms-setup  

If the container is not currently running, start (or restart) the ewsdocker/debian-openjre container

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  

From the Docker host console (where the container was started), enter the following docker exec command:

docker exec -it debian-openjre-9.5.7 /bin/bash  

When the startup has completed, a command prompt (#) will be presented. The default user is root, and the default directory will be /root (which may have been re-mapped to a docker host folder by the docker run command).

To exit the command-line interface, type exit at the command prompt.


ewsdocker/debian-openjre:9.5.7-gtk3

Download and install the ewsdocker/debian-openjre:9.5.7-gtk3 image:

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  

If the container is not currently running, start (or restart) the ewsdocker/debian-openjre container

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  

From the Docker host console (where the container was started), enter the following docker exec command:

docker exec -it debian-openjre-9.5.7-gtk3 /bin/bash  

When the startup has completed, a command prompt (#) will be presented. The default user is root, and the default directory will be /root (which may have been re-mapped to a docker host folder by the docker run command).

To exit the command-line interface, type exit at the command prompt.


ewsdocker/debian-openjre:9.5.7-jre-8

Download and install the ewsdocker/debian-openjre:9.5.7-jre-8 image:

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  

If the container is not currently running, start (or restart) the ewsdocker/debian-openjre container

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-jre-8:/root \
           --name=debian-openjre-9.5.7-jre-8 \
       ewsdocker/debian-openjre:9.5.7-jre-8  

From the Docker host console (where the container was started), enter the following docker exec command:

docker exec -it debian-openjre-9.5.7-jre-8 /bin/bash  

When the startup has completed, a command prompt (#) will be presented. The default user is root, and the default directory will be /root (which may have been re-mapped to a docker host folder by the docker run command).

To exit the command-line interface, type exit at the command prompt.


Persisting Container Modifications

The changes made to a running container are volatile, to say the least. They will disappear the next time a docker rm is performed on the container, or if the container was created (docker run) with the --rm option, and it is exited.

Performing a docker commit command on the running container will save the container configuration in a new docker image. Refer to the Docker Commit - Commit a container example at Docker Docs.


Quick Start  <==  BACK      |      NEXT  ==>  Bleeding-edge Testing