Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

It is expected to have all mandatory requirements fullfilledfulfilled. See: https://kgs-software.atlassian.net/wiki/spaces/~5c8bb2ef33a4404c1086f9b4/pages/2683469825/OSGi+Produkte+in+Container#Dependencies%3A

...

Command

Task

docker run

Start the container

--name {APPLICATION NAME}

gives the container a free choosable freely selectable name while running (to have a simpler reference for easier access later).

Info

Hint: You can start multiple instances of the same containers with different ports and different names.

Example:

Code Block
--name MyReadCache

-p {PORT}:{PORT}

Maps the host port to the port in the container.

Our Software runs on 8080 inside the container, therefore you always want to map your arbitrarily arbitrary host port to 8080

Sample:

Code Block
-p 8080:8080

-v {HOST_MOUNTDIR}:{CONTAINER_MOUNTDIR}

In order to put the configuration outside of the container, its necessary to mount the /application/work directory of the container into a arbitrarily an arbitrary host directory

Example:

Code Block
-v C:\KGS\cloud\mount:/application/work

-d {IMAGE NAME}

The Image to run

Info

Requires Step 1 needed (pull) to be completecompleted first

Example:

Code Block
-d http://images.docker.kgs-cloud.de/tia-readcache/tia-readcache