Java Magazine, Jan/Feb 2016
learn more ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2016 79 containers using the docker machine ip swarm node 01 command and then access the application in your browser This application supports GET PUT POST and DELETE APIs for resources in the Couchbase sample data The complete list of REST APIs for this application is documented online Conclusion This two part series explained how to deploy a Java application on Docker The first part introduced the basic concepts of Docker and the Docker Toolbox I then discussed how to build an image and run a container Those basics will apply to almost all Docker projects This second part introduced Docker Compose and Docker Swarm to help build multicontainer applications that can be deployed on multiple hosts In the process I touched on how Docker networking provides isolated environments for different applications This should provide what you need to get started using multiple Docker containers in your application Docker nicely complements Javas write once run anywhere mandate because it enables package once deploy anywhere The huge ecosystem that has built up around Docker in the past few years is driven by Dockers simplicity With a little experimenting I expect you will be equally excited about packaging Java applications using Docker article Arun Gupta @ arungupta is the vice president of developer advocacy at Couchbase He is also a Java Champion and a JUG leader Years ago he was a founding member of the Java EE team Getting Started with Docker
You must have JavaScript enabled to view digital editions.