Open a command prompt or terminal and execute the following command to run the
DemoRESTRoute artifact.
$ docker run -d -p <MACHINE_PORT>:8065 --name DemoRESTRoute <STUDIO_PROJECT>/demorestroute
009335e9edb0cd2d01682bfa92fd4a19e7fe567a7b7247463aa835b3acb9e878
where
<MACHINE_PORT> corresponds to the port used to
bind the host port to the container port
<STUDIO_PROJECT> corresponds to the Talend Studio project name that is the same as the Git project name. Project names must
be in upper case.
Execute the docker container ls command to list the containers
and check that the Docker container is running.
Example
$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
42b4f16477bd <STUDIO_PROJECT>/demorestroute "./DemoRESTRoute_run…" 4 seconds ago Up 4 seconds 0.0.0.0:8090->8065/tcp DemoRESTRoute
Access the endpoint in a browser, an XML document is returned.