...
Command | Task | ||||
---|---|---|---|---|---|
docker run | Start the container | ||||
--name {APPLICATION NAME} | gives the container a free choosable name while running (for easier access later).
Example:
| ||||
-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:
| ||||
-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:
| ||||
-d {IMAGE NAME} | The Image to run
Example:
|