...
Command | Task | ||||
---|---|---|---|---|---|
docker run | Start the container | ||||
-d | run as daemon instead of in foreground | ||||
--name {APPLICATION NAME} | gives the container a free choosable name while running (for easier access later).
Example:
| ||||
-v {HOST_VOLUME}:{CONTAINER_VOLUME} | Maps a host directory into the file system of the container. This way files are permanently stored even after the container is destroyed, and configuration files can be edited and maintained at the host.
| ||||
-p {HOST_PORT}:{SVC_PORT_IN_CONTAINER} | 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 arbitrary host port to 8080. Sample:
| ||||
{IMAGE NAME AS LAST PARAMETER} | The Image to run
Example:
|
...