|
Do not omit the less-than symbol (<) between docker load and the file path. See the example above.
|
|
If you are working with an older version Windows or Mac operating system (that does not run Docker natively), you must open the Docker Quickstart Terminal that was installed with the Docker Toolkit.
|
Parameter
|
Explanation
|
||
docker run -d
|
Starts the Docker image as a separate process. If you omit the -d, the output will be printed to the terminal.
|
||
-p 8080:8080
|
-p 8080:8080
Maps the port 8080 from your host server to the Docker instance. You can change the mapping by changing the first value. For example, -p 8090:8080. In that case, REST calls will have to point to the new port instead of 8080.
|
||
--name <resultContainerName>
|
Assigns a name to the Results Microservice container, such as resultms. Assigning a container name makes the container easy to reference from other containers and in logs without the need to know the IP address or port.
|
||
-v <youHostPath/db>:/tmp/
|
Maps a folder from your host server to the Docker image where the H2 database can persist when the Docker image is restarted. Create a db folder on your server and enter the path to that location on the left side of the colon (:). On the right side, /tmp/ represents the location for the database on the Docker image. The syntax of the path on your server will vary depending on your operating system. For example:
• Mac: -v /Users/myName/Downloads/ThingWatcher/db:/tmp/
• Windows: -v //D/Users/myName/Downloads/ThingWatcher/db:/tmp/
|
||
-v <yourHostPath>/microservices.properties:/maven/result-standalone.properties
|
Maps the microservices.properties configuration file from your host server to the Docker image. For example:
• Mac: -v /Users/myName/Downloads/ThingWatcher/microservices.properties:/maven/result-standalone.properties
• Windows: -v //D/Users/myName/Downloads/ThingWatcher/microservices.properties:/maven/result-standalone.properties
|
||
twxml/result-standalone:2.0.3
|
Is the name of the provided Docker image that was loaded to the local Docker registry.
|
||
-jar maven/result-standalone-2.0.3-bin.jar
|
Is the name of the jar file in the Docker image (must be entered verbatim).
|
||
server maven/results-h2–file.yml
|
Is the .yml configuration file provided in the Docker image (must be entered verbatim).
|