Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker

docker run 
-d  # Detached mode, swap for -it if we want interactive.
-p 8080:8080  
-v ${absolute_path_your_project_dir}/${MY_WAR}.war:/usr/local/tomcat/webapps/app.war 
tomcat:latest
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker
ADD COMMENT
Topic
Name
3+7 =