|
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 8090:8080
|
Maps the port 8090 from the host server to the Docker instance. You can change the mapping by changing the first value. For example, -p 8095:8080. In that case, the REST calls will have to point to the new port instead of 8090.
|
||
--name <trainingContainerName>
|
Assigns a name to the Training Microservice container, such as trainingms. 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 <yourHostPath>/microservices.properties:/maven/training-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/training-standalone.properties
• Windows: -v //D/Users/myName/Downloads/ThingWatcher/microservices.properties:/maven/training-standalone.properties
|
||
twxml/training-standalone:2.0.5
|
Is the name of the provided Docker image that was loaded to the local Docker registry.
|