I am a beginner to Docker. I want to test the portability of docker in fedora. I want to create my own image in fedora 19 having Jboss application and try to run this in fedora 20. What I want to do this? Help me with suitable commands.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
JBoss provides a set of Docker images that you can use as a base layer for your JBoss application container. They have an overview on their site and you can view their offical images right on Docker Hub. RedHat also has a nice overview.
At its most basic, your Dockerfile might look like:
With the war file for your project in the same directory. You could then build it using:
And finally run it with:
For information on how to build your own Docker images, check out this tutorial: