August 2017
Intermediate to advanced
332 pages
9h 16m
English
Let's add a stage to run the calculator container:
stage("Deploy to staging") { steps { sh "docker run -d --rm -p 8765:8080 --name calculator leszko/calculator" }}
After running this stage, the calculator container is running as a daemon, publishing its port as 8765 and being removed automatically when stopped.
Read now
Unlock full access