Versions Compared

Key

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

...

Code Block
docker login https://images.docker.kgs-cloud.de/harbor/
docker pull images.docker.kgs-cloud.de/tia-webservice/tia-webservice
docker run --name webservice -p 8080:8080 -v {YOUR HOST DIRECTORY MOUNT PATH}:/application/work

Step 1: Download of the image:

 -d images.docker.kgs-cloud.de/tia-webservice/tia-webservice
Code Block
docker pull images.docker.kgs-cloud.de/tia-webservice/tia-webservice

...

Code Block
docker run --name webservice -p 8080:8080 -v {YOUR HOST DIRECTORY MOUNT PATH}:/application/work -d images.docker.kgs-cloud.de/tia-webservice/tia-webservice

Explanation:

Command

Task

docker run

Start the container

--name {APPLICATION NAME}

gives the container a free choosable name while running (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 MyWebservice

-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 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 host directory

Example:

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

-d {IMAGE NAME}

The Image to run

Info

Step 1 needed to be complete

Example:

-d http://images.docker.kgs-cloud.de/tia-webservice/tia-webservice